about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlorian Berger <fbergr@gmail.com>2016-06-13 21:35:37 +0300
committerFlorian Berger <fbergr@gmail.com>2016-06-13 21:35:37 +0300
commit4e0fd65d96045c64481131b30d2fdff09d0042a5 (patch)
tree2b9530442d0fc87fc7e3db06791024a5d4918f4c /src
parentc0df44708e09187ca5e76fe4b832815ff562e8ea (diff)
downloadrust-4e0fd65d96045c64481131b30d2fdff09d0042a5.tar.gz
rust-4e0fd65d96045c64481131b30d2fdff09d0042a5.zip
doc: Fix typo
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 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