Skip to content

Commit ab6aa23

Browse files
authored
Merge pull request #1391 from ktheory/ktheory/iter5
docs: clarify instructions on iterators5.rs
2 parents 5fd3dfe + 1ac66f3 commit ab6aa23

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

exercises/iterators/iterators5.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
// Let's define a simple model to track Rustlings exercise progress. Progress
33
// will be modelled using a hash map. The name of the exercise is the key and
44
// the progress is the value. Two counting functions were created to count the
5-
// number of exercises with a given progress. These counting functions use
6-
// imperative style for loops. Recreate this counting functionality using
7-
// iterators. Only the two iterator methods (count_iterator and
8-
// count_collection_iterator) need to be modified.
5+
// number of exercises with a given progress. Recreate this counting
6+
// functionality using iterators. Try not to use imperative loops (for, while).
7+
// Only the two iterator methods (count_iterator and count_collection_iterator)
8+
// need to be modified.
99
// Execute `rustlings hint iterators5` or use the `hint` watch subcommand for a hint.
10-
//
11-
// Make the code compile and the tests pass.
1210

1311
// I AM NOT DONE
1412

0 commit comments

Comments
 (0)