Basic documentation for inclusive range syntax

This commit is contained in:
Jake Goulding 2017-03-22 13:39:17 -04:00
parent 58c701f5c7
commit c5a9f1f3f6

View File

@ -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);
}
}
```