Toggle · shorter doc comments

This commit is contained in:
ZacharyZhang-NY committed 2026-10-07 16:14:23 -04:00
1 parent 8f4729cc9f
commit aa0c99dd70
1 file changed
+2 -2
+2 -2
View File
@@ -52,7 +52,7 @@ impl RenderOnce for ButtonGroup {
} }
} }
/// One choice in a toggle: a label, an icon, or both. /// A toggle choice: a label, an icon, or both.
#[derive(Clone)] #[derive(Clone)]
pub struct ToggleItem { pub struct ToggleItem {
value: SharedString, value: SharedString,
@@ -215,7 +215,7 @@ impl RenderOnce for ToggleButton {
type OnChange = Rc<dyn Fn(&[SharedString], &mut Window, &mut App)>; type OnChange = Rc<dyn Fn(&[SharedString], &mut Window, &mut App)>;
/// Toggles side by side, wrapping onto more lines when narrow. One is chosen, or several with `multiple`. /// Wrapping toggles; one chosen, or several with `multiple`.
#[derive(IntoElement)] #[derive(IntoElement)]
pub struct ToggleGroup { pub struct ToggleGroup {
id: ElementId, id: ElementId,