Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JoJoJet committed Apr 12, 2023
1 parent 0e61de6 commit 2f60242
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/bevy_ecs/src/world/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,7 @@ impl World {
/// and system state is cached.
///
/// For simple cases where you just need to call the schedule,
/// consider using [`World::try_run_schedule`] instead.
/// consider using [`World::try_run_schedule_ref`] instead.
pub fn try_schedule_scope_ref<R>(
&mut self,
label: &dyn ScheduleLabel,
Expand Down Expand Up @@ -1775,11 +1775,11 @@ impl World {
/// and system state is cached.
///
/// For simple cases where you just need to call the schedule,
/// consider using [`World::try_run_schedule`] instead.
/// consider using [`World::run_schedule`] instead.
///
/// # Panics
///
/// Panics if the requested schedule does not exist, or the [`Schedules`] resource was not added.
/// Panics if the requested schedule does not exist.
pub fn schedule_scope<R>(
&mut self,
label: impl ScheduleLabel,
Expand All @@ -1797,11 +1797,11 @@ impl World {
/// and system state is cached.
///
/// For simple cases where you just need to call the schedule,
/// consider using [`World::try_run_schedule`] instead.
/// consider using [`World::run_schedule_ref`] instead.
///
/// # Panics
///
/// Panics if the requested schedule does not exist, or the [`Schedules`] resource was not added.
/// Panics if the requested schedule does not exist.
pub fn schedule_scope_ref<R>(
&mut self,
label: &dyn ScheduleLabel,
Expand Down Expand Up @@ -1850,7 +1850,7 @@ impl World {
///
/// # Panics
///
/// Panics if the requested schedule does not exist, or the [`Schedules`] resource was not added.
/// Panics if the requested schedule does not exist.
pub fn run_schedule(&mut self, label: impl ScheduleLabel) {
self.run_schedule_ref(&label);
}
Expand All @@ -1866,7 +1866,7 @@ impl World {
///
/// # Panics
///
/// Panics if the requested schedule does not exist, or the [`Schedules`] resource was not added.
/// Panics if the requested schedule does not exist.
pub fn run_schedule_ref(&mut self, label: &dyn ScheduleLabel) {
self.schedule_scope_ref(label, |world, sched| sched.run(world));
}
Expand Down

0 comments on commit 2f60242

Please sign in to comment.