Skip to content

Commit bef39b1

Browse files
committed
fix(collections): Naming exercises for vectors and hashmap
1 parent 0d894e6 commit bef39b1

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

exercises/collections/vec2.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ mod tests {
2828
let v: Vec<i32> = (1..).filter(|x| x % 2 == 0).take(5).collect();
2929
let ans = vec_loop(v.clone());
3030

31-
assert_eq!(
32-
ans,
33-
v.iter()
34-
.map(|x| x * 2)
35-
.collect::<Vec<i32>>()
36-
);
31+
assert_eq!(ans, v.iter().map(|x| x * 2).collect::<Vec<i32>>());
3732
}
3833
}

info.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ each constant."""
359359
# COLLECTIONS
360360

361361
[[exercises]]
362-
name = "collections1"
362+
name = "vec1"
363363
path = "exercises/collections/vec1.rs"
364364
mode = "test"
365365
hint = """
@@ -373,7 +373,7 @@ of the Rust book to learn more.
373373
"""
374374

375375
[[exercises]]
376-
name = "collections2"
376+
name = "vec2"
377377
path = "exercises/collections/vec2.rs"
378378
mode = "test"
379379
hint = """
@@ -383,7 +383,7 @@ Hint 2: Check the suggestion from the compiler error ;)
383383
"""
384384

385385
[[exercises]]
386-
name = "collections3"
386+
name = "hashmap1"
387387
path = "exercises/collections/hashmap1.rs"
388388
mode = "test"
389389
hint = """
@@ -394,7 +394,7 @@ Hint 2: Number of fruits should be at least 5. And you have to put
394394
"""
395395

396396
[[exercises]]
397-
name = "collections4"
397+
name = "hashmap2"
398398
path = "exercises/collections/hashmap2.rs"
399399
mode = "test"
400400
hint = """

0 commit comments

Comments
 (0)