From 17bdc3f7dc8ed50bf45494163e14e84ee7acc9ef Mon Sep 17 00:00:00 2001 From: Titouan Vervack Date: Thu, 25 Dec 2014 19:11:01 +0100 Subject: [PATCH] Fixed a small typo --- src/doc/guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index 22cbd18a865..1e4816e122e 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -4152,7 +4152,7 @@ We've made a struct that represents a circle. We then write an `impl` block, and inside it, define a method, `area`. Methods take a special first parameter, `&self`. There are three variants: `self`, `&self`, and `&mut self`. You can think of this first parameter as being the `x` in `x.foo()`. The three -variants correspond to the three kinds of thing `x` could be: `self` if it's +variants correspond to the three kinds of things `x` could be: `self` if it's just a value on the stack, `&self` if it's a reference, and `&mut self` if it's a mutable reference. We should default to using `&self`, as it's the most common.