]> git.lizzy.rs Git - rust.git/commitdiff
Update complement-design-faq.md
authorChristian Weinz <christian@madez.de>
Tue, 30 Jun 2015 20:02:10 +0000 (17:02 -0300)
committerChristian Weinz <christian@madez.de>
Tue, 30 Jun 2015 20:02:10 +0000 (17:02 -0300)
The ‘_‘ wildcard handles exactly not specific cases but all nut specified.

src/doc/complement-design-faq.md

index e887ed0cc5297042cf6dd712b6ddaf97e5415b1b..5e99876f5dab8c3f3eb5f2feda6fc5a6b0a298df 100644 (file)
@@ -99,7 +99,7 @@ Second, it makes cost explicit. In general, the only safe way to have a
 non-exhaustive match would be to panic the thread if nothing is matched, though
 it could fall through if the type of the `match` expression is `()`. This sort
 of hidden cost and special casing is against the language's philosophy. It's
-easy to ignore certain cases by using the `_` wildcard:
+easy to ignore all unspecified cases by using the `_` wildcard:
 
 ```rust,ignore
 match val.do_something() {