Skip to content

Commit

Permalink
doc: Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
floftar committed Jun 13, 2016
1 parent c0df447 commit 4e0fd65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/book/references-and-borrowing.md
Expand Up @@ -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
Expand Down

0 comments on commit 4e0fd65

Please sign in to comment.