summaryrefslogtreecommitdiffstats
path: root/widget/src/button.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-09-19 03:03:11 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-09-19 03:03:11 +0200
commit51f7ce73248bea2bb7cc2b662433e46fa0c44dcb (patch)
treea781075250aa1b5f340b42471e91033d5c0eebb4 /widget/src/button.rs
parent5d25562644907488203604769f338feb2c7df9b0 (diff)
downloadiced-51f7ce73248bea2bb7cc2b662433e46fa0c44dcb.tar.gz
iced-51f7ce73248bea2bb7cc2b662433e46fa0c44dcb.tar.bz2
iced-51f7ce73248bea2bb7cc2b662433e46fa0c44dcb.zip
Show `checkbox` doc example in multiple places
Diffstat (limited to 'widget/src/button.rs')
-rw-r--r--widget/src/button.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/widget/src/button.rs b/widget/src/button.rs
index a76035f7..3323c0d3 100644
--- a/widget/src/button.rs
+++ b/widget/src/button.rs
@@ -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 = ();