Skip to content

Commit 19d8bff

Browse files
committed
Rollup merge of #26687 - christianweinz:patch-1, r=huonw
The ‘_‘ wildcard does exactly not handle specific cases but all not specified ones.
2 parents 50df2a0 + e727dd5 commit 19d8bff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/complement-design-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Second, it makes cost explicit. In general, the only safe way to have a
9999
non-exhaustive match would be to panic the thread if nothing is matched, though
100100
it could fall through if the type of the `match` expression is `()`. This sort
101101
of hidden cost and special casing is against the language's philosophy. It's
102-
easy to ignore certain cases by using the `_` wildcard:
102+
easy to ignore all unspecified cases by using the `_` wildcard:
103103

104104
```rust,ignore
105105
match val.do_something() {

0 commit comments

Comments
 (0)