diff --git a/exercises/vecs/vecs2.rs b/exercises/vecs/vecs2.rs index 57d1097a..4dbb190d 100644 --- a/exercises/vecs/vecs2.rs +++ b/exercises/vecs/vecs2.rs @@ -21,7 +21,7 @@ fn vec_map(v: &Vec) -> Vec { v.iter().map(|num| { // TODO: Do the same thing as above - but instead of mutating the // Vec, you can just return the new number! - *num = &num * 2; + num * 2; }).collect() }