Show checkbox doc example in multiple places

This commit is contained in:
Héctor Ramón Jiménez 2024-09-19 03:03:11 +02:00
parent 5d25562644
commit 51f7ce7324
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
4 changed files with 89 additions and 11 deletions

View file

@ -1,5 +1,6 @@
//! Buttons allow your users to perform actions by pressing them.
//!
//! # Example
//! ```no_run
//! # mod iced { pub mod widget { pub use iced_widget::*; } }
//! # pub type State = ();
@ -32,6 +33,7 @@ use crate::core::{
/// A generic widget that produces a message when pressed.
///
/// # Example
/// ```no_run
/// # mod iced { pub mod widget { pub use iced_widget::*; } }
/// # pub type State = ();