Skip to content

Commit 98f0ff4

Browse files
authored
Typo
1 parent 219e261 commit 98f0ff4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/expressions/match-expr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ both endpoints left unspecified) are not supported in matches. The
137137
syntax `...` is also accepted for inclusive ranges in patterns only, for
138138
backwards compatibility.
139139

140-
Range patterns only work [`char`] and [numeric types]. A range pattern may not
141-
be a sub-range of another range pattern inside the same `match`.
140+
Range patterns only work on [`char`] and [numeric types]. A range pattern may
141+
not be a sub-range of another range pattern inside the same `match`.
142142

143143
Slice patterns can match both arrays of fixed size and slices of dynamic size.
144144
```rust

0 commit comments

Comments
 (0)