Skip to content

Commit 4aa17c8

Browse files
committed
Rollup merge of rust-lang#23788 - steveklabnik:gh23748, r=alexcrichton
Fixes rust-lang#23748
2 parents 5299d36 + e604382 commit 4aa17c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/trpl/method-syntax.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ 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
5353
a mutable reference. We should default to using `&self`, as it's the most
54-
common. Here's an example of all three variants:
54+
common, as Rustaceans prefer borrowing over taking ownership, and references
55+
over mutable references. Here's an example of all three variants:
5556

5657
```rust
5758
struct Circle {

0 commit comments

Comments
 (0)