Skip to content

Commit 254df65

Browse files
Merge pull request rust-lang#235 from Havvy/links
Links to types from PR rust-lang#234
2 parents b8c6072 + 14201be commit 254df65

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/expressions/match-expr.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ let message = match x {
117117
};
118118
```
119119

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`.
122122

123123
Finally, match patterns can accept *pattern guards* to further refine the
124124
criteria for matching a case. Pattern guards appear after the pattern and
@@ -140,3 +140,5 @@ let message = match maybe_digit {
140140
[_BlockExpression_]: expressions/block-expr.html#block-expressions
141141
[place expression]: expressions.html#place-expressions-and-value-expressions
142142
[value expression]: expressions.html#place-expressions-and-value-expressions
143+
[`char`]: types.html#textual-types
144+
[numeric types]: types.html#numeric-types

0 commit comments

Comments
 (0)