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:
parent
0d894e6ff7
commit
bef39b1259
2 changed files with 5 additions and 10 deletions
exercises/collections
|
@ -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>>());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue