about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-03-26 14:04:25 +0000
committerbors <bors@rust-lang.org>2017-03-26 14:04:25 +0000
commit7846dbe0c8de17f59cdfc3d2b914d58faad7eade (patch)
tree87a4a8f5945327ad7b3c9700160dcdfa83133245 /src/doc
parentbcfd5c48b7ec96cc28bef2cc5e29b4ae0ce6c3ac (diff)
parentdc52625d61e11f5cbdde5debdcf9b1e1fc48324f (diff)
downloadrust-7846dbe0c8de17f59cdfc3d2b914d58faad7eade.tar.gz
rust-7846dbe0c8de17f59cdfc3d2b914d58faad7eade.zip
Auto merge of #40826 - frewsxcv:rollup, r=frewsxcv
Rollup of 7 pull requests

- Successful merges: #40642, #40734, #40740, #40771, #40807, #40820, #40821
- Failed merges:
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/unstable-book/src/inclusive-range-syntax.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/doc/unstable-book/src/inclusive-range-syntax.md b/src/doc/unstable-book/src/inclusive-range-syntax.md
index 74d85536399..255445c318d 100644
--- a/src/doc/unstable-book/src/inclusive-range-syntax.md
+++ b/src/doc/unstable-book/src/inclusive-range-syntax.md
@@ -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);
+    }
+}
+```