Skip to content

Commit

Permalink
Fix new doc test in root module
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Mar 17, 2024
1 parent 179e886 commit 7e1ef7d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
//! }
Expand Down

0 comments on commit 7e1ef7d

Please sign in to comment.