diff options
| author | Rein Henrichs <reinh@reinh.com> | 2015-05-27 22:35:46 -0700 |
|---|---|---|
| committer | Rein Henrichs <reinh@reinh.com> | 2015-05-27 22:35:46 -0700 |
| commit | 23ec00751e8da1b8f138745cfcf6d861c0987915 (patch) | |
| tree | 3a713ccd7e39155af84ee7269993c683f5438ada | |
| parent | 6a3d55abf01016d4de27ed2160c0fcc1a7f12db9 (diff) | |
| download | rust-23ec00751e8da1b8f138745cfcf6d861c0987915.tar.gz rust-23ec00751e8da1b8f138745cfcf6d861c0987915.zip | |
TRPL: fix typo, borow for borrow
| -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: |
