Skip to content

Commit 13f97eb

Browse files
authored
Update Ch18.1 on enumerate
resolves issue #1994
1 parent 9aacfcc commit 13f97eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch18-01-all-the-places-for-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ c is at index 2
159159

160160
We use the `enumerate` method to adapt an iterator to produce a value and that
161161
value’s index in the iterator, placed into a tuple. The first call to
162-
`enumerate` produces the tuple `(0, 'a')`. When this value is matched to the
162+
`next` produces the tuple `(0, 'a')`. When this value is matched to the
163163
pattern `(index, value)`, `index` will be `0` and `value` will be `'a'`,
164164
printing the first line of the output.
165165

0 commit comments

Comments
 (0)