Skip to content

Commit

Permalink
Fixed more docs tests
Browse files Browse the repository at this point in the history
(cherry picked from commit 1a07abd)
  • Loading branch information
Ixentus committed Jan 13, 2024
1 parent a9fec7d commit 2dd6a35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/change_detection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ pub trait DetectChangesMut: DetectChanges {
/// # score_changed.initialize(&mut world);
/// # score_changed.run((), &mut world);
/// #
/// # let mut score_changed_event = IntoSystem::into_system(on_event::<ScoreChanged>);
/// # let mut score_changed_event = IntoSystem::into_system(on_event::<ScoreChanged>());
/// # score_changed_event.initialize(&mut world);
/// # score_changed_event.run((), &mut world);
/// #
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/schedule/condition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ pub mod common_conditions {
/// // `resource_changed_or_removed` will only return true if the
/// // given resource was just changed or removed (or added)
/// my_system.run_if(
/// resource_changed_or_removed::<Counter>
/// resource_changed_or_removed::<Counter>()
/// // By default detecting changes will also trigger if the resource was
/// // just added, this won't work with my example so I will add a second
/// // condition to make sure the resource wasn't just added
Expand Down

0 comments on commit 2dd6a35

Please sign in to comment.