Skip to content

Commit 19b5e24

Browse files
Update hashmaps3.rs description for clarity
I struggled with this exercise and didn't understand that it was looking for a summary of goals scored/conceded per team, instead of per match. My goal here is just to clarify the language, essentially saying "the total number of goals the team scored" to indicate that we are looking for a sum. Updated the exercise description to clarify this point. Relates loosely to closed issue #1361
1 parent 8d0aa11 commit 19b5e24

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

exercises/11_hashmaps/hashmaps3.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
// the form : "<team_1_name>,<team_2_name>,<team_1_goals>,<team_2_goals>"
55
// Example: England,France,4,2 (England scored 4 goals, France 2).
66
//
7-
// You have to build a scores table containing the name of the team, goals the
8-
// team scored, and goals the team conceded. One approach to build the scores
9-
// table is to use a Hashmap. The solution is partially written to use a
10-
// Hashmap, complete it to pass the test.
7+
// You have to build a scores table containing the name of the team, the total
8+
// number of goals the team scored, and the total number of goals the team
9+
// conceded. One approach to build the scores table is to use a Hashmap.
10+
// The solution is partially written to use a Hashmap,
11+
// complete it to pass the test.
1112
//
1213
// Make me pass the tests!
1314
//

0 commit comments

Comments
 (0)