Skip to content

Commit

Permalink
Rollup merge of rust-lang#37398 - zoffixznet:patch-1, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
GuillaumeGomez authored Oct 26, 2016
2 parents 46c5c6c + 22ce98d commit dc3b3af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/book/references-and-borrowing.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ fn main() {

In other words, the mutable borrow is held through the rest of our example. What
we want is for the mutable borrow by `y` to end so that the resource can be
returned to the owner, `x`. `x` can then provide a immutable borrow to `println!`.
returned to the owner, `x`. `x` can then provide an immutable borrow to `println!`.
In Rust, borrowing is tied to the scope that the borrow is valid for. And our
scopes look like this:

Expand Down

0 comments on commit dc3b3af

Please sign in to comment.