Skip to content

Commit 530a9a3

Browse files
Update 02_match.md
1 parent 47bb99d commit 530a9a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/src/05_ticket_v2/02_match.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ The `_` pattern matches anything that wasn't matched by the previous patterns.
7373
By using this catch-all pattern, you _won't_ get the benefits of compiler-driven refactoring.\
7474
If you add a new enum variant, the compiler _won't_ tell you that you're not handling it.
7575

76-
In general, prefer to avoid catch-all patterns unless you're really sure future new variants should be handled the same way.
76+
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.
7777
</div>

0 commit comments

Comments
 (0)