Skip to content

Commit 058c76b

Browse files
committed
Fix typo in 0.4 devlog: class dispatching.
1 parent fe88f9f commit 058c76b

File tree

1 file changed

+2
-2
lines changed
  • website/content/dev/2025-09-29-september-2025-update

1 file changed

+2
-2
lines changed

website/content/dev/2025-09-29-september-2025-update/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@ No more tedious `try_cast()` cascades for explicit dynamic dispatch. The [`match
211211
Thanks to sylbeth's work, the macro supports mutable bindings ([#1242]), optional fallback branches ([#1246]), and discard patterns ([#1252]):
212212

213213
```rust
214-
let simple_dispatch: i32 = match_class!(event, {
214+
let simple_dispatch: i32 = match_class! { event,
215215
button @ InputEventMouseButton => 1,
216216
motion @ InputEventMouseMotion => 2,
217217
action @ InputEventAction => 3,
218218
_ => 0, // Fallback.
219-
});
219+
};
220220
```
221221

222222
### Generic packed arrays

0 commit comments

Comments
 (0)