Skip to content

Commit

Permalink
Merge pull request rust-lang#1391 from ktheory/ktheory/iter5
Browse files Browse the repository at this point in the history
docs: clarify instructions on iterators5.rs
  • Loading branch information
shadows-withal authored Apr 5, 2023
2 parents 5fd3dfe + 1ac66f3 commit ab6aa23
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions exercises/iterators/iterators5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ab6aa23

Please sign in to comment.