diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-01-02 09:22:15 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-02 09:22:15 -0800 |
| commit | 656d5bbb92a7f811c0ab172b2bda484b1c890924 (patch) | |
| tree | c75cc9f19d0ec2d0509a6a9a4f7ea3fbb57a5fe0 | |
| parent | 5bd7a78f66e4b60d760c087964df622f79047cbb (diff) | |
| parent | 17bdc3f7dc8ed50bf45494163e14e84ee7acc9ef (diff) | |
rollup merge of #20227: FlashYoshi/patch-1
| -rw-r--r-- | src/doc/guide.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md index 0a531a11a65..55465651cfb 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -4181,7 +4181,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. |
