summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Nield <64328730+matthewjnield@users.noreply.github.com>2024-07-05 08:27:51 -0400
committerGitHub <noreply@github.com>2024-07-05 08:27:51 -0400
commit2f4e63b443709deb70892b45418d7c85ce714d61 (patch)
treea4d6082f28130b711a3bc57f014b59abbfd545ed
parent67d8d5848ce27b968fc5b2c4a92cf175b685bce7 (diff)
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.
-rw-r--r--exercises/11_hashmaps/hashmaps2.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/exercises/11_hashmaps/hashmaps2.rs b/exercises/11_hashmaps/hashmaps2.rs
index b3691b6..376970d 100644
--- a/exercises/11_hashmaps/hashmaps2.rs
+++ b/exercises/11_hashmaps/hashmaps2.rs
@@ -5,7 +5,8 @@
// Apple (4), Mango (2) and Lychee (5) are already in the basket hash map. You
// must add fruit to the basket so that there is at least one of each kind and
// more than 11 in total - we have a lot of mouths to feed. You are not allowed
-// to insert any more of these fruits!
+// to insert any more of the fruits that are already in the basket (Apple,
+// Mango, and Lyche).
use std::collections::HashMap;