Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion book/src/05_ticket_v2/02_match.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ match status {
The `_` pattern matches anything that wasn't matched by the previous patterns.

<div class="warning">
By using this catch-all pattern, you _won't_ get the benefits of compiler-driven refactoring.\
By using this catch-all pattern, you _won't_ get the benefits of compiler-driven refactoring.
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.
Expand Down