diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-10-26 23:49:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-26 23:49:27 +0200 |
| commit | dc3b3afda63146f891faaa2ca02bf202bb869b40 (patch) | |
| tree | f0a6d19d206bb58341fdcf7d1e82340b9af863b2 | |
| parent | 46c5c6ccfd5da5442c7d2194498760469da4ee18 (diff) | |
| parent | 22ce98d0e7aa573c5418bdf62d46c0444c60e2ab (diff) | |
| download | rust-dc3b3afda63146f891faaa2ca02bf202bb869b40.tar.gz rust-dc3b3afda63146f891faaa2ca02bf202bb869b40.zip | |
Rollup merge of #37398 - zoffixznet:patch-1, r=GuillaumeGomez
Fix typo
| -rw-r--r-- | src/doc/book/references-and-borrowing.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/book/references-and-borrowing.md b/src/doc/book/references-and-borrowing.md index d845ad6feb0..1e2f061b067 100644 --- a/src/doc/book/references-and-borrowing.md +++ b/src/doc/book/references-and-borrowing.md @@ -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: |
