Skip to content

Commit 2f4e63b

Browse files
fix: Add clarification to instructions for hashmaps2.rs
In the instructions for hashmaps2.rs, the last sentence of the include the phrase "these fruits", which refers to fruits that were mentioned two sentences prior. Having a sentence in between the first sentence in which the fruits were described and a later sentence in which the phrase "these fruits" is used makes this confusing to read, since the phrase "these fruits" does not come immediately after the mention of the fruits that the phrase refers to. This pull request expands the last sentence to explicitly refer to the fruits being mentioned, in order to add clarity about the requirement of the exercise.
1 parent 67d8d58 commit 2f4e63b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exercises/11_hashmaps/hashmaps2.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
// Apple (4), Mango (2) and Lychee (5) are already in the basket hash map. You
66
// must add fruit to the basket so that there is at least one of each kind and
77
// more than 11 in total - we have a lot of mouths to feed. You are not allowed
8-
// to insert any more of these fruits!
8+
// to insert any more of the fruits that are already in the basket (Apple,
9+
// Mango, and Lyche).
910

1011
use std::collections::HashMap;
1112

0 commit comments

Comments
 (0)