Skip to content

Commit e7558cd

Browse files
authored
Fix documentation: incorrect references to the Update schedule in ExitCondition (#18438)
# Objective - The referenced `ScheduleLabel` for `OnPrimaryClosed` and `OnAllClosed` in `ExitCondition` was incorrect ## Solution - Changed `Update` to `PostUpdate`
1 parent 6d4a9ad commit e7558cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_window/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ impl Plugin for WindowPlugin {
177177
pub enum ExitCondition {
178178
/// Close application when the primary window is closed
179179
///
180-
/// The plugin will add [`exit_on_primary_closed`] to [`Update`].
180+
/// The plugin will add [`exit_on_primary_closed`] to [`PostUpdate`].
181181
OnPrimaryClosed,
182182
/// Close application when all windows are closed
183183
///
184-
/// The plugin will add [`exit_on_all_closed`] to [`Update`].
184+
/// The plugin will add [`exit_on_all_closed`] to [`PostUpdate`].
185185
OnAllClosed,
186186
/// Keep application running headless even after closing all windows
187187
///

0 commit comments

Comments
 (0)