Skip to content

Commit 2e8156c

Browse files
authored
Auto merge of #34259 - fbergr:master, r=GuillaumeGomez
doc: Fix typo
2 parents c0df447 + 4e0fd65 commit 2e8156c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/references-and-borrowing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn main() {
8585
fn sum_vec(v: &Vec<i32>) -> i32 {
8686
return v.iter().fold(0, |a, &b| a + b);
8787
}
88-
// Borrow two vectors and and sum them.
88+
// Borrow two vectors and sum them.
8989
// This kind of borrowing does not allow mutation to the borrowed.
9090
fn foo(v1: &Vec<i32>, v2: &Vec<i32>) -> i32 {
9191
// do stuff with v1 and v2

0 commit comments

Comments
 (0)