mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-27 14:24:08 +00:00
rollup merge of #18309 : cakebaker/fix_off_by_one
This commit is contained in:
commit
0c736c7b1d
@ -4508,7 +4508,7 @@ range(1i, 100i).map(|x| x + 1i);
|
||||
|
||||
`map` is called upon another iterator, and produces a new iterator where each
|
||||
element reference has the closure it's been given as an argument called on it.
|
||||
So this would give us the numbers from `2-101`. Well, almost! If you
|
||||
So this would give us the numbers from `2-100`. Well, almost! If you
|
||||
compile the example, you'll get a warning:
|
||||
|
||||
```{notrust,ignore}
|
||||
|
Loading…
Reference in New Issue
Block a user