summaryrefslogtreecommitdiff
path: root/exercises/collections/hashmap1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/collections/hashmap1.rs')
-rw-r--r--exercises/collections/hashmap1.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/exercises/collections/hashmap1.rs b/exercises/collections/hashmap1.rs
index b1dc0bb..64b5a7f 100644
--- a/exercises/collections/hashmap1.rs
+++ b/exercises/collections/hashmap1.rs
@@ -8,7 +8,7 @@
//
// Make me compile and pass the tests!
//
-// Execute the command `rustlings hint collections3` if you need
+// Execute the command `rustlings hint hashmap1` if you need
// hints.
// I AM NOT DONE
@@ -39,8 +39,6 @@ mod tests {
#[test]
fn at_least_five_fruits() {
let basket = fruit_basket();
- assert!(basket
- .values()
- .sum::<u32>() >= 5);
+ assert!(basket.values().sum::<u32>() >= 5);
}
}