Fix new doc test in root module

This commit is contained in:
Héctor Ramón Jiménez 2024-03-17 13:57:53 +01:00
parent 179e8863b3
commit 7e1ef7d150
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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)
//! }