about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-09-01 18:38:05 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-01 18:38:18 -0700
commit80c4f74c29ede062909db2b048b5b75820730994 (patch)
treed3b43776d36ddcc9d9582ab95745df3fdbddd95c /doc
parentd777e5133360876baa4213f81a33934f04768a0f (diff)
downloadrust-80c4f74c29ede062909db2b048b5b75820730994.tar.gz
rust-80c4f74c29ede062909db2b048b5b75820730994.zip
Remove the 'to' keyword
Diffstat (limited to 'doc')
-rw-r--r--doc/rust.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/rust.md b/doc/rust.md
index 434b0eb3f2d..9023147208c 100644
--- a/doc/rust.md
+++ b/doc/rust.md
@@ -2211,14 +2211,14 @@ fn main() {
 ~~~~
 
 Multiple match patterns may be joined with the `|` operator.  A
-range of values may be specified with `to`. For example:
+range of values may be specified with `..`. For example:
 
 ~~~~
 # let x = 2;
 
 let message = match x {
   0 | 1  => ~"not many",
-  2 to 9 => ~"a few",
+  2 .. 9 => ~"a few",
   _      => ~"lots"
 };
 ~~~~