Skip to content

Commit

Permalink
Rollup merge of rust-lang#23747 - tshepang:misleading-info, r=stevekl…
Browse files Browse the repository at this point in the history
…abnik

 The first sentence was not compatible with the second.
  • Loading branch information
Manishearth committed Mar 26, 2015
2 parents 50eb32f + 3e100ff commit 5145449
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 5145449

Please sign in to comment.