1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-11-29 22:47:43 +02:00

fix(collections): Naming exercises for vectors and hashmap

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

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