From d6d949a62a9f5a2b2961fb0d7e0acffba700fad7 Mon Sep 17 00:00:00 2001 From: Ori Avtalion Date: Sat, 26 Dec 2015 22:29:02 +0200 Subject: [PATCH] book: Fix typo --- src/doc/book/references-and-borrowing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/book/references-and-borrowing.md b/src/doc/book/references-and-borrowing.md index d8758e0c695c2..546636720ca21 100644 --- a/src/doc/book/references-and-borrowing.md +++ b/src/doc/book/references-and-borrowing.md @@ -263,7 +263,7 @@ for i in &v { } ``` -This prints out one through three. As we iterate through the vectors, we’re +This prints out one through three. As we iterate through the vector, we’re only given references to the elements. And `v` is itself borrowed as immutable, which means we can’t change it while we’re iterating: