still got work to do, got the first one

This commit is contained in:
Ruud Salym J Erie 2022-10-08 18:42:14 -03:00
parent 9dc826f48a
commit 8a51e6af15

View File

@ -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()
} }