File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -493,11 +493,12 @@ by an *action* (expression). Each case is separated by commas. It is
493
493
often convenient to use a block expression for each case, in which case
494
494
the commas are optional as shown below. Literals are valid patterns and
495
495
match only their own value. A single arm may match multiple different
496
- patterns by combining them with the pipe operator (` | ` ), so long as every
497
- pattern binds the same set of variables. Ranges of numeric literal
498
- patterns can be expressed with two dots, as in ` M..N ` . The underscore
499
- (` _ ` ) is a wildcard pattern that matches any single value. (` .. ` ) is a
500
- different wildcard that can match one or more fields in an ` enum ` variant.
496
+ patterns by combining them with the pipe operator (` | ` ), so long as
497
+ every pattern binds the same set of variables (see "destructuring"
498
+ below). Ranges of numeric literal patterns can be expressed with two
499
+ dots, as in ` M..N ` . The underscore (` _ ` ) is a wildcard pattern that
500
+ matches any single value. (` .. ` ) is a different wildcard that can match
501
+ one or more fields in an ` enum ` variant.
501
502
502
503
~~~
503
504
# let my_number = 1;
You can’t perform that action at this time.
0 commit comments