Skip to content

Commit

Permalink
rollup merge of rust-lang#23747: tshepang/misleading-info
Browse files Browse the repository at this point in the history
The first sentence was not compatible with the second.
  • Loading branch information
alexcrichton committed Mar 27, 2015
2 parents 5f9fd2e + 3e100ff commit 5d8a529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/trpl/method-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ This will print `12.566371`.

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`.
parameter, of which 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
just a value on the stack, `&self` if it's a reference, and `&mut self` if it's
Expand Down

0 comments on commit 5d8a529

Please sign in to comment.