mirror of
https://github.com/rust-lang/book.git
synced 2026-12-04 08:54:57 -06:00
Wrong listing number
This commit is contained in:
committed by
Carol (Nichols || Goulding)
parent
0514b1cf34
commit
eabaaaa90e
@@ -133,7 +133,7 @@ ownership of the iterator we call it on.
|
||||
consume the iterator. Instead, they produce different iterators by changing
|
||||
some aspect of the original iterator.
|
||||
|
||||
Listing 13-17 shows an example of calling the iterator adaptor method `map`,
|
||||
Listing 13-14 shows an example of calling the iterator adaptor method `map`,
|
||||
which takes a closure to call on each item as the items are iterated through.
|
||||
The `map` method returns a new iterator that produces the modified items. The
|
||||
closure here creates a new iterator in which each item from the vector will be
|
||||
|
||||
Reference in New Issue
Block a user