Skip to content

Commit 8a1aad8

Browse files
committed
Make some further edits to #1998
1 parent 5afb67a commit 8a1aad8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ The code in Listing 18-3 will print the following:
126126
```
127127

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

134134
### `let` Statements
135135

0 commit comments

Comments
 (0)