diff options
author | 2024-03-17 13:57:53 +0100 | |
---|---|---|
committer | 2024-03-17 13:57:53 +0100 | |
commit | 7e1ef7d150aa3d4d05942eea2706348f20d61d64 (patch) | |
tree | cbb4264479f151a5017c6b236943de059dd4ac97 /src | |
parent | 179e8863b3c7a1f056eef5e06fbf4f3796a641ba (diff) | |
download | iced-7e1ef7d150aa3d4d05942eea2706348f20d61d64.tar.gz iced-7e1ef7d150aa3d4d05942eea2706348f20d61d64.tar.bz2 iced-7e1ef7d150aa3d4d05942eea2706348f20d61d64.zip |
Fix new doc test in root module
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -137,6 +137,13 @@ //! And that's everything! We just wrote a whole user interface. Let's run it: //! //! ```no_run +//! # #[derive(Default)] +//! # struct Counter; +//! # impl Counter { +//! # fn update(&mut self, _message: ()) {} +//! # fn view(&self) -> iced::Element<()> { unimplemented!() } +//! # } +//! # //! fn main() -> iced::Result { //! iced::run("A cool counter", Counter::update, Counter::view) //! } |