summaryrefslogtreecommitdiff
path: root/info.toml
diff options
context:
space:
mode:
authorapogeeoak <59737221+apogeeoak@users.noreply.github.com>2021-04-20 18:52:10 -0400
committerapogeeoak <59737221+apogeeoak@users.noreply.github.com>2021-04-20 18:55:04 -0400
commit9c88ea91266c84901fd46496902610241dab3baf (patch)
treee01eda3bf404642ee6a686815ff72b64225a42d3 /info.toml
parentb29ea17ea94d1862114af2cf5ced0e09c197dc35 (diff)
Improved iterators5.rs explanation.
Diffstat (limited to 'info.toml')
-rw-r--r--info.toml11
1 files changed, 6 insertions, 5 deletions
diff --git a/info.toml b/info.toml
index 646bb5a..65f671a 100644
--- a/info.toml
+++ b/info.toml
@@ -694,7 +694,7 @@ Step 2 & step 2.1:
Very similar to the lines above and below. You've got this!
Step 3:
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
+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.
"""
@@ -749,12 +749,13 @@ hint = """
The documentation for the std::iter::Iterator trait contains numerous methods
that would be helpful here.
-Return 0 from count_stack to make the code compile in order to test count.
+Return 0 from count_collection_iterator to make the code compile in order to
+test count_iterator.
-The stack variable in count_stack is a slice of HashMaps. It needs to be
-converted into an iterator in order to use the iterator methods.
+The collection variable in count_collection_iterator is a slice of HashMaps. It
+needs to be converted into an iterator in order to use the iterator methods.
-The fold method can be useful in the count_stack function."""
+The fold method can be useful in the count_collection_iterator function."""
# THREADS