Skip to content

Commit 7e042cd

Browse files
authored
Merge pull request #379 from felixrabe/patch-1
Typo
2 parents 219e261 + 18954f5 commit 7e042cd

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 with [`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)