summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 1f2b8c93..c2177484 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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)
//! }