diff options
Diffstat (limited to 'src/lib.rs')
-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) //! } |