Skip to content

Commit

Permalink
Rollup merge of rust-lang#23788 - steveklabnik:gh23748, r=alexcrichton
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Mar 28, 2015
2 parents 5299d36 + e604382 commit 4aa17c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/doc/trpl/method-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ 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
a mutable reference. We should default to using `&self`, as it's the most
common. Here's an example of all three variants:
common, as Rustaceans prefer borrowing over taking ownership, and references
over mutable references. Here's an example of all three variants:

```rust
struct Circle {
Expand Down

0 comments on commit 4aa17c8

Please sign in to comment.