We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f1754e commit 7bab78cCopy full SHA for 7bab78c
exercises/vecs/vecs2.rs
@@ -9,7 +9,7 @@
9
// I AM NOT DONE
10
11
fn vec_loop(mut v: Vec<i32>) -> Vec<i32> {
12
- for i in v.iter_mut() {
+ for element in v.iter_mut() {
13
// TODO: Fill this up so that each element in the Vec `v` is
14
// multiplied by 2.
15
???
@@ -20,7 +20,7 @@ fn vec_loop(mut v: Vec<i32>) -> Vec<i32> {
20
}
21
22
fn vec_map(v: &Vec<i32>) -> Vec<i32> {
23
- v.iter().map(|num| {
+ v.iter().map(|element| {
24
// TODO: Do the same thing as above - but instead of mutating the
25
// Vec, you can just return the new number!
26
0 commit comments