Skip to content

Commit 34ea029

Browse files
authored
chore: Update hint of iterators3
`collect()` needs some hint for standard_library_types/iterators3 exercise with doc link for understanding different return types via `FromIterator`.
1 parent de6c45a commit 34ea029

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

info.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,10 @@ The division_results variable needs to be collected into a collection type.
772772
The result_with_list function needs to return a single Result where the success
773773
case is a vector of integers and the failure case is a DivisionError.
774774
775-
The list_of_results function needs to return a vector of results."""
775+
The list_of_results function needs to return a vector of results.
776+
777+
See https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect how
778+
the `FromIterator` trait is used in `collect()`."""
776779

777780
[[exercises]]
778781
name = "iterators4"

0 commit comments

Comments
 (0)