File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,6 @@ mod tests {
28
28
let v: Vec < i32 > = ( 1 ..) . filter ( |x| x % 2 == 0 ) . take ( 5 ) . collect ( ) ;
29
29
let ans = vec_loop ( v. clone ( ) ) ;
30
30
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 >>( ) ) ;
37
32
}
38
33
}
Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ each constant."""
359
359
# COLLECTIONS
360
360
361
361
[[exercises ]]
362
- name = " collections1 "
362
+ name = " vec1 "
363
363
path = " exercises/collections/vec1.rs"
364
364
mode = " test"
365
365
hint = """
@@ -373,7 +373,7 @@ of the Rust book to learn more.
373
373
"""
374
374
375
375
[[exercises ]]
376
- name = " collections2 "
376
+ name = " vec2 "
377
377
path = " exercises/collections/vec2.rs"
378
378
mode = " test"
379
379
hint = """
@@ -383,7 +383,7 @@ Hint 2: Check the suggestion from the compiler error ;)
383
383
"""
384
384
385
385
[[exercises ]]
386
- name = " collections3 "
386
+ name = " hashmap1 "
387
387
path = " exercises/collections/hashmap1.rs"
388
388
mode = " test"
389
389
hint = """
@@ -394,7 +394,7 @@ Hint 2: Number of fruits should be at least 5. And you have to put
394
394
"""
395
395
396
396
[[exercises ]]
397
- name = " collections4 "
397
+ name = " hashmap2 "
398
398
path = " exercises/collections/hashmap2.rs"
399
399
mode = " test"
400
400
hint = """
You can’t perform that action at this time.
0 commit comments