diff options
| author | bors <bors@rust-lang.org> | 2015-05-28 11:24:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-05-28 11:24:38 +0000 |
| commit | 4233cbda8aa917090ee7c3a50a842abb34563c6f (patch) | |
| tree | b0d15a0446efd36b48da8fe6b8a087758edaf78c /src | |
| parent | 4f66d881a54d1f94d0684174b9c5cc32fe8e69ce (diff) | |
| parent | 23ec00751e8da1b8f138745cfcf6d861c0987915 (diff) | |
| download | rust-4233cbda8aa917090ee7c3a50a842abb34563c6f.tar.gz rust-4233cbda8aa917090ee7c3a50a842abb34563c6f.zip | |
Auto merge of #25849 - reinh:patch-1, r=huonw
Thanks for the awesome book! r? @steveklabnik
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/trpl/references-and-borrowing.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/references-and-borrowing.md b/src/doc/trpl/references-and-borrowing.md index bb5adac5ebf..b69db228f27 100644 --- a/src/doc/trpl/references-and-borrowing.md +++ b/src/doc/trpl/references-and-borrowing.md @@ -206,7 +206,7 @@ fn main() { ^ ``` -In other words, the mutable borow is held through the rest of our example. What +In other words, the mutable borrow is held through the rest of our example. What we want is for the mutable borrow to end _before_ we try to call `println!` and make an immutable borrow. In Rust, borrowing is tied to the scope that the borrow is valid for. And our scopes look like this: |
