File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -117,8 +117,8 @@ let message = match x {
117
117
};
118
118
```
119
119
120
- Range patterns only work on ` char ` and numeric types. A range pattern may not be
121
- a sub-range of another range pattern inside the same ` match ` .
120
+ Range patterns only work on [ ` char ` ] and [ numeric types] . A range pattern may
121
+ not be a sub-range of another range pattern inside the same ` match ` .
122
122
123
123
Finally, match patterns can accept * pattern guards* to further refine the
124
124
criteria for matching a case. Pattern guards appear after the pattern and
@@ -140,3 +140,5 @@ let message = match maybe_digit {
140
140
[ _BlockExpression_ ] : expressions/block-expr.html#block-expressions
141
141
[ place expression ] : expressions.html#place-expressions-and-value-expressions
142
142
[ value expression ] : expressions.html#place-expressions-and-value-expressions
143
+ [ `char` ] : types.html#textual-types
144
+ [ numeric types ] : types.html#numeric-types
You can’t perform that action at this time.
0 commit comments