From 112b22875aa6a6987507186ad6edfbcc279aa73e Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Tue, 26 Aug 2025 13:38:12 -0500 Subject: [PATCH] Fix doc on CloseButton::bundle() --- src/widgets/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/mod.rs b/src/widgets/mod.rs index b33c989..7cc33b7 100644 --- a/src/widgets/mod.rs +++ b/src/widgets/mod.rs @@ -96,7 +96,7 @@ impl BigRedButton { /// I haven't figure out what will receive the on-press events, so I'm moving /// the problem. It will not be the button's job to hook up the event notice. /// - /// TODO: Pass in the UiTheme struct + /// TODO: Pass in the UiTheme struct fn bundle(text: impl Into) -> impl Bundle { ( // TODO: Remove `Button`? Add `Button` to the `CloseButton` bundle? @@ -184,7 +184,7 @@ impl BigRedButton { pub struct CloseButton(Entity); impl CloseButton { - /// Spawn a button that will despawn the top-most node when pressed. + /// Default bundle for a panel's close button. Pass in the entity to despawn. /// /// TODO: Pass in the UiTheme struct fn bundle(target: Entity) -> impl Bundle {