Skip to content

Commit 0c736c7

Browse files
committed
rollup merge of #18309 : cakebaker/fix_off_by_one
2 parents ee32c04 + 1221999 commit 0c736c7

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
@@ -4508,7 +4508,7 @@ range(1i, 100i).map(|x| x + 1i);
45084508

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

45144514
```{notrust,ignore}

0 commit comments

Comments
 (0)