Skip to content

Commit e727dd5

Browse files
Update complement-design-faq.md
The ‘_‘ wildcard handles exactly not specific cases but all nut specified.
1 parent 8536152 commit e727dd5

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)