Use "through"

This commit is contained in:
Peter N 2016-09-26 22:38:45 -04:00 committed by GitHub
parent 0a72b4dc9f
commit c30eb31f9b

View file

@ -86,7 +86,7 @@ fn main() {
return v.iter().fold(0, |a, &b| a + b);
}
// Borrow two vectors and sum them.
// This kind of borrowing does not allow mutation to the borrowed reference.
// This kind of borrowing does not allow mutation through the borrowed reference.
fn foo(v1: &Vec<i32>, v2: &Vec<i32>) -> i32 {
// do stuff with v1 and v2
let s1 = sum_vec(v1);