diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-01 18:38:05 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-01 18:38:18 -0700 |
| commit | 80c4f74c29ede062909db2b048b5b75820730994 (patch) | |
| tree | d3b43776d36ddcc9d9582ab95745df3fdbddd95c /doc | |
| parent | d777e5133360876baa4213f81a33934f04768a0f (diff) | |
| download | rust-80c4f74c29ede062909db2b048b5b75820730994.tar.gz rust-80c4f74c29ede062909db2b048b5b75820730994.zip | |
Remove the 'to' keyword
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/rust.md | 4 |
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" }; ~~~~ |
