From f006a10b1eed27fc03b89ed2bb34202eb7e412e7 Mon Sep 17 00:00:00 2001 From: Corey Richardson Date: Fri, 6 Dec 2013 12:10:36 -0500 Subject: [PATCH] Wildcard changes. --- doc/tutorial.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index 7b8c670e8ea7..6abbc15d96e4 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