From 058c76bc32af9074c4d41cc083bcd712bc491d01 Mon Sep 17 00:00:00 2001 From: Yarvin Date: Wed, 8 Oct 2025 08:11:53 +0200 Subject: [PATCH] Fix typo in 0.4 devlog: class dispatching. --- website/content/dev/2025-09-29-september-2025-update/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/content/dev/2025-09-29-september-2025-update/index.md b/website/content/dev/2025-09-29-september-2025-update/index.md index e2a3cf5c673c..08ded8f77d05 100644 --- a/website/content/dev/2025-09-29-september-2025-update/index.md +++ b/website/content/dev/2025-09-29-september-2025-update/index.md @@ -211,12 +211,12 @@ No more tedious `try_cast()` cascades for explicit dynamic dispatch. The [`match Thanks to sylbeth's work, the macro supports mutable bindings ([#1242]), optional fallback branches ([#1246]), and discard patterns ([#1252]): ```rust -let simple_dispatch: i32 = match_class!(event, { +let simple_dispatch: i32 = match_class! { event, button @ InputEventMouseButton => 1, motion @ InputEventMouseMotion => 2, action @ InputEventAction => 3, _ => 0, // Fallback. -}); +}; ``` ### Generic packed arrays