Skip to content

Commit 1221999

Browse files
committed
Guide: Fix off-by-one error
1 parent 80e5fe1 commit 1221999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4474,7 +4474,7 @@ range(1i, 100i).map(|x| x + 1i);
44744474

44754475
`map` is called upon another iterator, and produces a new iterator where each
44764476
element reference has the closure it's been given as an argument called on it.
4477-
So this would give us the numbers from `2-101`. Well, almost! If you
4477+
So this would give us the numbers from `2-100`. Well, almost! If you
44784478
compile the example, you'll get a warning:
44794479

44804480
```{notrust,ignore}

0 commit comments

Comments
 (0)