Skip to content

Commit 27602e4

Browse files
committed
Inclusive ranges are not stable, don't tell people to use them
1 parent ecc3adf commit 27602e4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

first-edition/src/iterators.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ Now that you know more Rust, we can talk in detail about how this works.
1414
Ranges (the `0..10`) are 'iterators'. An iterator is something that we can
1515
call the `.next()` method on repeatedly, and it gives us a sequence of things.
1616

17-
(By the way, a range with two dots like `0..10` is inclusive on the left (so it
17+
A range with two dots like `0..10` is inclusive on the left (so it
1818
starts at 0) and exclusive on the right (so it ends at 9). A mathematician
19-
would write "[0, 10)". To get a range that goes all the way up to 10 you can
20-
write `0...10`.)
19+
would write "[0, 10)".
2120

2221
Like this:
2322

0 commit comments

Comments
 (0)