We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58c701f commit c5a9f1fCopy full SHA for c5a9f1f
src/doc/unstable-book/src/inclusive-range-syntax.md
@@ -6,5 +6,15 @@ The tracking issue for this feature is: [#28237]
6
7
------------------------
8
9
+To get a range that goes from 0 to 10 and includes the value 10, you
10
+can write `0...10`:
11
12
+```rust
13
+#![feature(inclusive_range_syntax)]
14
15
+fn main() {
16
+ for i in 0...10 {
17
+ println!("{}", i);
18
+ }
19
+}
20
+```
0 commit comments