Skip to content

Commit 5d8a529

Browse files
committed
rollup merge of #23747: tshepang/misleading-info
The first sentence was not compatible with the second.
2 parents 5f9fd2e + 3e100ff commit 5d8a529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/method-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ This will print `12.566371`.
4646

4747
We've made a struct that represents a circle. We then write an `impl` block,
4848
and inside it, define a method, `area`. Methods take a special first
49-
parameter, `&self`. There are three variants: `self`, `&self`, and `&mut self`.
49+
parameter, of which there are three variants: `self`, `&self`, and `&mut self`.
5050
You can think of this first parameter as being the `x` in `x.foo()`. The three
5151
variants correspond to the three kinds of thing `x` could be: `self` if it's
5252
just a value on the stack, `&self` if it's a reference, and `&mut self` if it's

0 commit comments

Comments
 (0)