about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-06-13 12:51:42 -0700
committerGitHub <noreply@github.com>2016-06-13 12:51:42 -0700
commit2e8156cfba9b7aabf427a9902361fe693f8e9796 (patch)
tree2b9530442d0fc87fc7e3db06791024a5d4918f4c
parentc0df44708e09187ca5e76fe4b832815ff562e8ea (diff)
parent4e0fd65d96045c64481131b30d2fdff09d0042a5 (diff)
downloadrust-2e8156cfba9b7aabf427a9902361fe693f8e9796.tar.gz
rust-2e8156cfba9b7aabf427a9902361fe693f8e9796.zip
Auto merge of #34259 - fbergr:master, r=GuillaumeGomez
doc: Fix typo
-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 a28f450c942..ef339a14309 100644
--- a/src/doc/book/references-and-borrowing.md
+++ b/src/doc/book/references-and-borrowing.md
@@ -85,7 +85,7 @@ fn main() {
     fn sum_vec(v: &Vec<i32>) -> i32 {
         return v.iter().fold(0, |a, &b| a + b);
     }
-    // Borrow two vectors and and sum them.
+    // Borrow two vectors and sum them.
     // This kind of borrowing does not allow mutation to the borrowed.
     fn foo(v1: &Vec<i32>, v2: &Vec<i32>) -> i32 {
         // do stuff with v1 and v2