mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-12 21:59:18 +00:00
still got work to do, got the first one
This commit is contained in:
parent
9dc826f48a
commit
8a51e6af15
@ -21,7 +21,7 @@ fn vec_map(v: &Vec<i32>) -> Vec<i32> {
|
|||||||
v.iter().map(|num| {
|
v.iter().map(|num| {
|
||||||
// TODO: Do the same thing as above - but instead of mutating the
|
// TODO: Do the same thing as above - but instead of mutating the
|
||||||
// Vec, you can just return the new number!
|
// Vec, you can just return the new number!
|
||||||
*num = &num * 2;
|
num * 2;
|
||||||
}).collect()
|
}).collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user