We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a72b4d commit c30eb31Copy full SHA for c30eb31
src/doc/book/references-and-borrowing.md
@@ -86,7 +86,7 @@ fn main() {
86
return v.iter().fold(0, |a, &b| a + b);
87
}
88
// Borrow two vectors and sum them.
89
- // This kind of borrowing does not allow mutation to the borrowed reference.
+ // This kind of borrowing does not allow mutation through the borrowed reference.
90
fn foo(v1: &Vec<i32>, v2: &Vec<i32>) -> i32 {
91
// do stuff with v1 and v2
92
let s1 = sum_vec(v1);
0 commit comments