Update complement-design-faq.md

The ‘_‘ wildcard handles exactly not specific cases but all nut specified.
This commit is contained in:
Christian Weinz 2015-06-30 17:02:10 -03:00
parent 85361528bc
commit e727dd5811

View 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() {