mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-12-25 21:58:26 +01:00
Formatting
This commit is contained in:
parent
1993507236
commit
93536fbcfd
1 changed files with 1 additions and 0 deletions
|
@ -74,4 +74,5 @@ By using this catch-all pattern, you _won't_ get the benefits of compiler-driven
|
|||
If you add a new enum variant, the compiler _won't_ tell you that you're not handling it.
|
||||
|
||||
If you're keen on correctness, avoid using catch-alls. Leverage the compiler to re-examine all matching sites and determine how new enum variants should be handled.
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue