From 2dd6a35ad5e339764f050e87f6c724fff7d90ea0 Mon Sep 17 00:00:00 2001 From: Acid Date: Sat, 13 Jan 2024 00:46:04 +0100 Subject: [PATCH] Fixed more docs tests (cherry picked from commit 1a07abd6d51cbd0810dbb4ac0e5e011a42450490) --- crates/bevy_ecs/src/change_detection.rs | 2 +- crates/bevy_ecs/src/schedule/condition.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ecs/src/change_detection.rs b/crates/bevy_ecs/src/change_detection.rs index ed3834e05fde9..08710679a5325 100644 --- a/crates/bevy_ecs/src/change_detection.rs +++ b/crates/bevy_ecs/src/change_detection.rs @@ -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::); + /// # let mut score_changed_event = IntoSystem::into_system(on_event::()); /// # score_changed_event.initialize(&mut world); /// # score_changed_event.run((), &mut world); /// # diff --git a/crates/bevy_ecs/src/schedule/condition.rs b/crates/bevy_ecs/src/schedule/condition.rs index 24cebf993bb68..55c073f04a701 100644 --- a/crates/bevy_ecs/src/schedule/condition.rs +++ b/crates/bevy_ecs/src/schedule/condition.rs @@ -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:: + /// resource_changed_or_removed::() /// // 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