Skip to content

Commit 07511f4

Browse files
committed
fix typos
1 parent c77abd2 commit 07511f4

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

crates/bevy_app/src/app.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ impl App {
339339
/// ## Example
340340
/// ```
341341
/// # use bevy_app::prelude::*;
342+
/// # use bevy_ecs::schedule::ScheduleCleanupPolicy;
342343
/// #
343344
/// # let mut app = App::new();
344345
/// # fn system_a() {}
@@ -348,7 +349,7 @@ impl App {
348349
/// app.add_systems(Update, system_a);
349350
///
350351
/// // remove the system
351-
/// app.remove_systems_in_set(Update, system_a);
352+
/// app.remove_systems_in_set(Update, system_a, ScheduleCleanupPolicy::RemoveOnlySystems);
352353
/// ```
353354
pub fn remove_systems_in_set<M>(
354355
&mut self,

crates/bevy_ecs/src/schedule/schedule.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ impl ScheduleGraph {
10521052

10531053
Ok(keys.len())
10541054
}
1055-
ScheduleCleanupPolicy::RemoveOnlySystems => {
1055+
ScheduleCleanupPolicy::RemoveSystemsOnly => {
10561056
for &key in &keys {
10571057
self.add_edges_for_transitive_dependencies(key.into());
10581058
}
@@ -1626,14 +1626,14 @@ pub enum ReportCycles {
16261626
pub enum ScheduleCleanupPolicy {
16271627
/// Remove the referenced set and any systems in the set.
16281628
/// Attempts to maintain the order between the transitive dependencies by adding new edges
1629-
/// between the existing before and after dependendencies on the set and the systems.
1629+
/// between the existing before and after dependencies on the set and the systems.
16301630
/// This does not remove sets that might sub sets of the set.
16311631
#[default]
16321632
RemoveSetAndSystems,
16331633
/// Remove only the systems in the set. The set
16341634
/// Attempts to maintain the order between the transitive dependencies by adding new edges
1635-
/// between the existing before and after dependendencies on the systems.
1636-
RemoveOnlySystems,
1635+
/// between the existing before and after dependencies on the systems.
1636+
RemoveSystemsOnly,
16371637
/// Remove the set and any systems in the set.
16381638
/// Note that this will not add new edges and
16391639
/// so will break any transitive dependencies on that set or systems.
@@ -1642,7 +1642,7 @@ pub enum ScheduleCleanupPolicy {
16421642
/// Remove only the systems in the set.
16431643
/// Note that this will not add new edges and
16441644
/// so will break any transitive dependencies on that set or systems.
1645-
RemoveOnlySystemsAllowBreakages,
1645+
RemoveSystemsOnlyAllowBreakages,
16461646
}
16471647

16481648
// methods for reporting errors

0 commit comments

Comments
 (0)