Fix new doc test in root module
This commit is contained in:
parent
179e8863b3
commit
7e1ef7d150
1 changed files with 7 additions and 0 deletions
|
|
@ -137,6 +137,13 @@
|
||||||
//! And that's everything! We just wrote a whole user interface. Let's run it:
|
//! And that's everything! We just wrote a whole user interface. Let's run it:
|
||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
|
//! # #[derive(Default)]
|
||||||
|
//! # struct Counter;
|
||||||
|
//! # impl Counter {
|
||||||
|
//! # fn update(&mut self, _message: ()) {}
|
||||||
|
//! # fn view(&self) -> iced::Element<()> { unimplemented!() }
|
||||||
|
//! # }
|
||||||
|
//! #
|
||||||
//! fn main() -> iced::Result {
|
//! fn main() -> iced::Result {
|
||||||
//! iced::run("A cool counter", Counter::update, Counter::view)
|
//! iced::run("A cool counter", Counter::update, Counter::view)
|
||||||
//! }
|
//! }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue