about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPeter N <spacey-github.com@ssr.com>2016-09-25 00:17:31 -0400
committerGitHub <noreply@github.com>2016-09-25 00:17:31 -0400
commit0a72b4dc9fa6f32483bdce84bd5f64164cc1787d (patch)
tree18ba31f2fc17985822910e0b4b62c32f11440a51 /src
parent05c2fdd64f3f4acc358b653616de6034eced49b5 (diff)
Suggesting a change to a comment that puzzled me
While reading this, the comment made it difficult for me to simply absorb the concept.  It interrupted my reading flow, and I think this expresses the same meaning, but reads a bit better.
Diffstat (limited to 'src')
-rw-r--r--src/doc/book/references-and-borrowing.md2
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 2ec3a00c0df..b9ccad06083 100644
--- a/src/doc/book/references-and-borrowing.md
+++ b/src/doc/book/references-and-borrowing.md
@@ -86,7 +86,7 @@ fn main() {
         return v.iter().fold(0, |a, &b| a + b);
     }
     // Borrow two vectors and sum them.
-    // This kind of borrowing does not allow mutation to the borrowed.
+    // This kind of borrowing does not allow mutation to the borrowed reference.
     fn foo(v1: &Vec<i32>, v2: &Vec<i32>) -> i32 {
         // do stuff with v1 and v2
         let s1 = sum_vec(v1);