Skip to content

Commit

Permalink
Merge pull request rust-lang#1210 from cj81499/iterators1-hint
Browse files Browse the repository at this point in the history
improve hint for iterators1
  • Loading branch information
shadows-withal authored Sep 29, 2022
2 parents 2e33d42 + efdebd4 commit 6174b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions info.toml
Original file line number Diff line number Diff line change
Expand Up @@ -818,9 +818,9 @@ Step 1:
We need to apply something to the collection `my_fav_fruits` before we start to go through
it. What could that be? Take a look at the struct definition for a vector for inspiration:
https://doc.rust-lang.org/std/vec/struct.Vec.html.
Step 2 & step 2.1:
Step 2 & step 3:
Very similar to the lines above and below. You've got this!
Step 3:
Step 4:
An iterator goes through all elements in a collection, but what if we've run out of
elements? What should we expect here? If you're stuck, take a look at
https://doc.rust-lang.org/std/iter/trait.Iterator.html for some ideas.
Expand Down

0 comments on commit 6174b5c

Please sign in to comment.