diff --git a/crates/bevy_ecs/src/system/mod.rs b/crates/bevy_ecs/src/system/mod.rs index f127d7b478c16..fd4b3027c4b90 100644 --- a/crates/bevy_ecs/src/system/mod.rs +++ b/crates/bevy_ecs/src/system/mod.rs @@ -170,7 +170,7 @@ pub trait IntoSystem: Sized { /// /// ``` /// # use bevy_ecs::prelude::*; - /// # let mut schedule = Schedule::new(); + /// # let mut schedule = Schedule::default(); /// // Ignores the output of a system that may fail. /// schedule.add_systems(my_system.map(std::mem::drop)); /// # let mut world = World::new(); diff --git a/crates/bevy_ecs/src/system/system_param.rs b/crates/bevy_ecs/src/system/system_param.rs index 22af08c1c0092..e5343002df95a 100644 --- a/crates/bevy_ecs/src/system/system_param.rs +++ b/crates/bevy_ecs/src/system/system_param.rs @@ -1735,7 +1735,7 @@ mod tests { } let mut world = World::new(); - let mut schedule = crate::schedule::Schedule::new(); + let mut schedule = crate::schedule::Schedule::default(); schedule.add_systems(non_sync_system); schedule.run(&mut world); }