From 23ec00751e8da1b8f138745cfcf6d861c0987915 Mon Sep 17 00:00:00 2001 From: Rein Henrichs Date: Wed, 27 May 2015 22:35:46 -0700 Subject: [PATCH] TRPL: fix typo, borow for borrow --- src/doc/trpl/references-and-borrowing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/trpl/references-and-borrowing.md b/src/doc/trpl/references-and-borrowing.md index bb5adac5ebfc1..b69db228f2724 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: