From 5b14beab5f0cad17101534aedae13a65452d7990 Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Wed, 4 Feb 2026 00:07:35 -0800 Subject: [PATCH] Chapter 6 part 2: Catch-All Patterns example is not about enums The exactly matches against a plain integer - say "Using `match`" rather than "Using enums". --- src/ch06-02-match.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch06-02-match.md b/src/ch06-02-match.md index e96ec79ba3..69c1232c56 100644 --- a/src/ch06-02-match.md +++ b/src/ch06-02-match.md @@ -200,7 +200,7 @@ have null, thus making the billion-dollar mistake discussed earlier impossible. ### Catch-All Patterns and the `_` Placeholder -Using enums, we can also take special actions for a few particular values, but +Using `match`, we can also take special actions for a few particular values, but for all other values take one default action. Imagine we’re implementing a game where, if you roll a 3 on a dice roll, your player doesn’t move but instead gets a fancy new hat. If you roll a 7, your player loses a fancy hat. For all