From eabaaaa90ee6937db3690dc56f739116be55ecb2 Mon Sep 17 00:00:00 2001 From: Yiannis Hadjicharalambous Date: Thu, 8 Sep 2022 14:46:49 +0100 Subject: [PATCH] Wrong listing number --- src/ch13-02-iterators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch13-02-iterators.md b/src/ch13-02-iterators.md index 2efa552a8..030ebf48e 100644 --- a/src/ch13-02-iterators.md +++ b/src/ch13-02-iterators.md @@ -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