diff --git a/crates/bevy_time/src/common_conditions.rs b/crates/bevy_time/src/common_conditions.rs index 1e4fbc8d5a16a..2db959b18c4bb 100644 --- a/crates/bevy_time/src/common_conditions.rs +++ b/crates/bevy_time/src/common_conditions.rs @@ -13,8 +13,11 @@ use bevy_utils::Duration; /// fn main() { /// App::new() /// .add_plugins(DefaultPlugins) -/// .add_systems(Update, tick.run_if(on_timer(Duration::from_secs(1)))) -/// .run(); +/// .add_systems( +/// Update, +/// tick.run_if(on_timer(Duration::from_secs(1))), +/// ) +/// .run(); /// } /// fn tick() { /// // ran once a second @@ -38,8 +41,9 @@ pub fn on_timer(duration: Duration) -> impl FnMut(Res