Skip to content

Commit 864e741

Browse files
author
liv
committed
reword hashmaps2 a bit more
1 parent 5687676 commit 864e741

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

exercises/hashmaps/hashmaps2.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
// hashmaps2.rs
2-
// A basket of fruits in the form of a hash map is given. The key
3-
// represents the name of the fruit and the value represents how many
4-
// of that particular fruit is in the basket.
5-
// Three types of fruits - Apple (4), Mango (2) and Lychee (5) are already given in the basket.
6-
// You must add fruit to the basket so that there is at least
7-
// one of each kind and more than 11 in total.
2+
// We're collecting different fruits to bake a delicious fruit cake.
3+
// For this, we have a basket, which we'll represent in the form of a hash
4+
// map. The key represents the name of each fruit we collect and the value
5+
// represents how many of that particular fruit we have collected.
6+
// Three types of fruits - Apple (4), Mango (2) and Lychee (5) are already
7+
// in the basket hash map.
8+
// You must add fruit to the basket so that there is at least
9+
// one of each kind and more than 11 in total - we have a lot of mouths to feed.
810
// You are not allowed to insert any more of these fruits!
911
//
1012
// Make me pass the tests!
@@ -34,7 +36,7 @@ fn fruit_basket(basket: &mut HashMap<Fruit, u32>) {
3436
];
3537

3638
for fruit in fruit_kinds {
37-
// TODO: Insert new fruits if they are not already present in the basket.
39+
// TODO: Insert new fruits if they are not already present in the basket.
3840
// Note that you are not allowed to put any type of fruit that's already
3941
// present!
4042
}

0 commit comments

Comments
 (0)