File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed 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
473
473
often convenient to use a block expression for each case, in which case
474
474
the commas are optional as shown below. Literals are valid patterns and
475
475
match only their own value. A single arm may match multiple different
476
- patterns by combining them with the pipe operator (` | ` ), so long as every
477
- pattern binds the same set of variables (see "destructuring" below). Ranges of numeric literal
478
- patterns can be expressed with two dots, as in ` M..N ` . The underscore
479
- (` _ ` ) is a wildcard pattern that matches any single value. (` .. ` ) is a
480
- different wildcard that can match one or more fields in an ` enum ` variant.
476
+ patterns by combining them with the pipe operator (` | ` ), so long as
477
+ every pattern binds the same set of variables (see "destructuring"
478
+ below). Ranges of numeric literal patterns can be expressed with two
479
+ dots, as in ` M..N ` . The underscore (` _ ` ) is a wildcard pattern that
480
+ matches any single value. (` .. ` ) is a different wildcard that can match
481
+ one or more fields in an ` enum ` variant.
481
482
482
483
~~~
483
484
# let my_number = 1;
You can’t perform that action at this time.
0 commit comments