Fix doc on CloseButton::bundle()

This commit is contained in:
2025-08-26 13:38:12 -05:00
parent 9411e57759
commit 112b22875a

View File

@@ -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<String>) -> 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 {