diff options
| author | liv <mokou@fastmail.com> | 2023-04-05 13:06:43 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-05 13:06:43 +0000 |
| commit | ab6aa23cec9bb021d3bb7102b1949ba62065832c (patch) | |
| tree | b2902ad15bba6b66973201c3d60fb5d2fdef6135 | |
| parent | 5fd3dfe01b2fd046ff2c3164136b6f591c2f8a1d (diff) | |
| parent | 1ac66f372b670f5218334c1bb0dadcb67ca5cbd4 (diff) | |
Merge pull request #1391 from ktheory/ktheory/iter5
docs: clarify instructions on iterators5.rs
| -rw-r--r-- | exercises/iterators/iterators5.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/exercises/iterators/iterators5.rs b/exercises/iterators/iterators5.rs index 0593d12..8709795 100644 --- a/exercises/iterators/iterators5.rs +++ b/exercises/iterators/iterators5.rs @@ -2,13 +2,11 @@ // Let's define a simple model to track Rustlings exercise progress. Progress // will be modelled using a hash map. The name of the exercise is the key and // the progress is the value. Two counting functions were created to count the -// number of exercises with a given progress. These counting functions use -// imperative style for loops. Recreate this counting functionality using -// iterators. Only the two iterator methods (count_iterator and -// count_collection_iterator) need to be modified. +// number of exercises with a given progress. Recreate this counting +// functionality using iterators. Try not to use imperative loops (for, while). +// Only the two iterator methods (count_iterator and count_collection_iterator) +// need to be modified. // Execute `rustlings hint iterators5` or use the `hint` watch subcommand for a hint. -// -// Make the code compile and the tests pass. // I AM NOT DONE |
