From 8a51e6af152b7ad7225934e2119ff4e0298838c9 Mon Sep 17 00:00:00 2001 From: Ruud Salym J Erie Date: Sat, 8 Oct 2022 18:42:14 -0300 Subject: [PATCH] still got work to do, got the first one --- exercises/vecs/vecs2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }