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 {
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}
Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ each constant."""
359359# COLLECTIONS
360360
361361[[exercises ]]
362- name = " collections1 "
362+ name = " vec1 "
363363path = " exercises/collections/vec1.rs"
364364mode = " test"
365365hint = """
@@ -373,7 +373,7 @@ of the Rust book to learn more.
373373"""
374374
375375[[exercises ]]
376- name = " collections2 "
376+ name = " vec2 "
377377path = " exercises/collections/vec2.rs"
378378mode = " test"
379379hint = """
@@ -383,7 +383,7 @@ Hint 2: Check the suggestion from the compiler error ;)
383383"""
384384
385385[[exercises ]]
386- name = " collections3 "
386+ name = " hashmap1 "
387387path = " exercises/collections/hashmap1.rs"
388388mode = " test"
389389hint = """
@@ -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 "
398398path = " exercises/collections/hashmap2.rs"
399399mode = " test"
400400hint = """
You can’t perform that action at this time.
0 commit comments