From 13f97eb470dc5a4f57805ec476a9fe2133c3349a Mon Sep 17 00:00:00 2001 From: Zoey Hewll Date: Tue, 18 Jun 2019 13:19:11 +0800 Subject: [PATCH] Update Ch18.1 on enumerate resolves issue #1994 --- src/ch18-01-all-the-places-for-patterns.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch18-01-all-the-places-for-patterns.md b/src/ch18-01-all-the-places-for-patterns.md index d838532fba..00ff2e1207 100644 --- a/src/ch18-01-all-the-places-for-patterns.md +++ b/src/ch18-01-all-the-places-for-patterns.md @@ -159,7 +159,7 @@ c is at index 2 We use the `enumerate` method to adapt an iterator to produce a value and that value’s index in the iterator, placed into a tuple. The first call to -`enumerate` produces the tuple `(0, 'a')`. When this value is matched to the +`next` produces the tuple `(0, 'a')`. When this value is matched to the pattern `(index, value)`, `index` will be `0` and `value` will be `'a'`, printing the first line of the output.