File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ As we've said before, an iterator is something that we can call the
213
213
` .next() ` method on repeatedly, and it gives us a sequence of things.
214
214
Because you need to call the method, this means that iterators
215
215
can be * lazy* and not generate all of the values upfront. This code,
216
- for example, does not actually generate the numbers ` 1-100 ` , instead
216
+ for example, does not actually generate the numbers ` 1-99 ` , instead
217
217
creating a value that merely represents the sequence:
218
218
219
219
``` rust
@@ -259,7 +259,7 @@ a new iterator. The simplest one is called `map`:
259
259
260
260
` map ` is called upon another iterator, and produces a new iterator where each
261
261
element reference has the closure it's been given as an argument called on it.
262
- So this would give us the numbers from ` 2-101 ` . Well, almost! If you
262
+ So this would give us the numbers from ` 2-100 ` . Well, almost! If you
263
263
compile the example, you'll get a warning:
264
264
265
265
``` text
You can’t perform that action at this time.
0 commit comments