Skip to content

Commit 5afb67a

Browse files
committed
Merge remote-tracking branch 'origin/pr/1998'
2 parents 7e18012 + 13f97eb commit 5afb67a

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
@@ -127,7 +127,7 @@ The code in Listing 18-3 will print the following:
127127

128128
We use the `enumerate` method to adapt an iterator to produce a value and that
129129
value’s index in the iterator, placed into a tuple. The first call to
130-
`enumerate` produces the tuple `(0, 'a')`. When this value is matched to the
130+
`next` produces the tuple `(0, 'a')`. When this value is matched to the
131131
pattern `(index, value)`, `index` will be `0` and `value` will be `'a'`,
132132
printing the first line of the output.
133133

0 commit comments

Comments
 (0)