diff options
| author | Corey Richardson <corey@octayn.net> | 2013-12-06 12:10:36 -0500 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2013-12-10 09:43:35 -0500 |
| commit | f006a10b1eed27fc03b89ed2bb34202eb7e412e7 (patch) | |
| tree | 11060133a18054c3b5d7d474cb63f2d58555e8c6 /doc/tutorial.md | |
| parent | 079ea00d238113827c0c2d57e8447ce1ab69afe9 (diff) | |
| download | rust-f006a10b1eed27fc03b89ed2bb34202eb7e412e7.tar.gz rust-f006a10b1eed27fc03b89ed2bb34202eb7e412e7.zip | |
Wildcard changes.
Diffstat (limited to 'doc/tutorial.md')
| -rw-r--r-- | doc/tutorial.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md index 7b8c670e8ea..6abbc15d96e 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -473,9 +473,8 @@ their own value. A single arm may match multiple different patterns by combining them with the pipe operator (`|`), so long as every pattern binds the same set of variables. Ranges of numeric literal patterns can be expressed with two dots, as in `M..N`. The underscore (`_`) is -a wildcard pattern that matches any single value. The asterisk (`*`) -is a different wildcard that can match one or more fields in an `enum` -variant. +a wildcard pattern that matches any single value. (`..`) is a different +wildcard that can match one or more fields in an `enum` variant. The patterns in a match arm are followed by a fat arrow, `=>`, then an expression to evaluate. Each case is separated by commas. It's often |
