File tree 1 file changed +2
-2
lines changed
crates/bevy_ecs/src/schedule
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ pub mod common_conditions {
150
150
/// This run condition is relatively expensive, as it iterates over every entity with this component.
151
151
/// As a result, you likely only want to use this run condition when the number of entitities with the component `T` is small.
152
152
pub fn any_component_added < T : Component > ( ) -> impl FnMut ( Query < ( ) , Added < T > > ) -> bool {
153
- move |query : Query < ( ) , Added < T > > | !query . is_empty ( )
153
+ move |components : Query < ( ) , Added < T > > | !components . is_empty ( )
154
154
}
155
155
156
156
/// Generates a [`Condition`](super::Condition)-satisfying closure that returns `true`
@@ -160,6 +160,6 @@ pub mod common_conditions {
160
160
/// This run condition is relatively expensive, as it iterates over every entity with this component.
161
161
/// As a result, you likely only want to use this run condition when the number of entitities with the component `T` is small.
162
162
pub fn any_component_changed < T : Component > ( ) -> impl FnMut ( Query < ( ) , Changed < T > > ) -> bool {
163
- move |query : Query < ( ) , Changed < T > > | !query . is_empty ( )
163
+ move |components : Query < ( ) , Changed < T > > | !components . is_empty ( )
164
164
}
165
165
}
You can’t perform that action at this time.
0 commit comments