mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-03 17:35:28 +03:00
doc: Fix typo
This commit is contained in:
@@ -85,7 +85,7 @@ fn main() {
|
||||
fn sum_vec(v: &Vec<i32>) -> i32 {
|
||||
return v.iter().fold(0, |a, &b| a + b);
|
||||
}
|
||||
// Borrow two vectors and and sum them.
|
||||
// Borrow two vectors and sum them.
|
||||
// This kind of borrowing does not allow mutation to the borrowed.
|
||||
fn foo(v1: &Vec<i32>, v2: &Vec<i32>) -> i32 {
|
||||
// do stuff with v1 and v2
|
||||
|
||||
Reference in New Issue
Block a user