Basic documentation for inclusive range syntax
This commit is contained in:
parent
58c701f5c7
commit
c5a9f1f3f6
@ -6,5 +6,15 @@ The tracking issue for this feature is: [#28237]
|
||||
|
||||
------------------------
|
||||
|
||||
To get a range that goes from 0 to 10 and includes the value 10, you
|
||||
can write `0...10`:
|
||||
|
||||
```rust
|
||||
#![feature(inclusive_range_syntax)]
|
||||
|
||||
fn main() {
|
||||
for i in 0...10 {
|
||||
println!("{}", i);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user