diff options
| author | pml68 <contact@pml68.dev> | 2025-08-01 09:15:24 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-08-01 09:15:24 +0200 |
| commit | c8cc1689768a7baae9cb2e457aadc426e616fdc3 (patch) | |
| tree | 7ba8c9eeec220dcc032b941c5a902ec3d2555e9e | |
| parent | feat: switch to `mundy` for the `system-theme` feature (diff) | |
| download | iced_material-c8cc1689768a7baae9cb2e457aadc426e616fdc3.tar.gz | |
fix: doc test(s)
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -196,12 +196,12 @@ impl Theme { /// } /// /// impl State { - /// fn view(&self) -> iced::Element<Message> { - /// // ... + /// fn view(&self) -> iced::Element<Message, Theme> { + /// iced::widget::text("Hello!").into() /// } /// /// fn update(&mut self, message: Message) { - /// match Message { + /// match message { /// Message::SystemThemeChanged(theme) => Theme::update_system_theme(theme) /// } /// } |
