Skip to content

Commit 431c037

Browse files
authored
Rollup merge of rust-lang#36711 - pcn:patch-1, r=steveklabnik
Suggesting a change to a comment that puzzled me While reading this, the comment made it difficult for me to simply absorb the concept. It interrupted my reading flow, and I think this expresses the same meaning, but reads a bit better. It's trivial, but makes it easier for me to move on to the next line.
2 parents cabfa99 + c30eb31 commit 431c037

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

0 commit comments

Comments
 (0)