We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c0df447 + 4e0fd65 commit 2e8156cCopy full SHA for 2e8156c
src/doc/book/references-and-borrowing.md
@@ -85,7 +85,7 @@ fn main() {
85
fn sum_vec(v: &Vec<i32>) -> i32 {
86
return v.iter().fold(0, |a, &b| a + b);
87
}
88
- // Borrow two vectors and and sum them.
+ // Borrow two vectors and sum them.
89
// This kind of borrowing does not allow mutation to the borrowed.
90
fn foo(v1: &Vec<i32>, v2: &Vec<i32>) -> i32 {
91
// do stuff with v1 and v2
0 commit comments