Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

13570 add see below to a reference to a new concept 2 #15166

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/doc/tutorial.md
Original file line number Diff line number Diff line change
@@ -473,11 +473,12 @@ by an *action* (expression). Each case is separated by commas. It is
often convenient to use a block expression for each case, in which case
the commas are optional as shown below. Literals are valid patterns and
match only 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. (`..`) is a
different wildcard that can match one or more fields in an `enum` variant.
patterns by combining them with the pipe operator (`|`), so long as
every pattern binds the same set of variables (see "destructuring"
below). 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. (`..`) is a different wildcard that can match
one or more fields in an `enum` variant.

~~~
# let my_number = 1;