From 9f1e4d46854bce4c22ec359e6eed165a5433d522 Mon Sep 17 00:00:00 2001 From: panpilkarz Date: Wed, 3 Sep 2025 12:10:50 +0200 Subject: [PATCH] Fix typo in 02_match --- book/src/05_ticket_v2/02_match.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/05_ticket_v2/02_match.md b/book/src/05_ticket_v2/02_match.md index 12c09a8e19..ecbd2955b9 100644 --- a/book/src/05_ticket_v2/02_match.md +++ b/book/src/05_ticket_v2/02_match.md @@ -70,7 +70,7 @@ match status { The `_` pattern matches anything that wasn't matched by the previous patterns.
-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.