1
0
Fork 0
mirror of https://github.com/notohh/rustlings.git synced 2025-08-13 22:33:35 -04:00

fix(collections): Naming exercises for vectors and hashmap

This commit is contained in:
Mickael Fortunato 2021-03-18 18:39:22 +01:00
commit bef39b1259
2 changed files with 5 additions and 10 deletions
exercises/collections

View file

@ -28,11 +28,6 @@ mod tests {
let v: Vec<i32> = (1..).filter(|x| x % 2 == 0).take(5).collect();
let ans = vec_loop(v.clone());
assert_eq!(
ans,
v.iter()
.map(|x| x * 2)
.collect::<Vec<i32>>()
);
assert_eq!(ans, v.iter().map(|x| x * 2).collect::<Vec<i32>>());
}
}