Skip to content

Commit 037bc82

Browse files
committed
Rename query into components
1 parent 749a42b commit 037bc82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_ecs/src/schedule/condition.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ pub mod common_conditions {
150150
/// This run condition is relatively expensive, as it iterates over every entity with this component.
151151
/// As a result, you likely only want to use this run condition when the number of entitities with the component `T` is small.
152152
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()
154154
}
155155

156156
/// Generates a [`Condition`](super::Condition)-satisfying closure that returns `true`
@@ -160,6 +160,6 @@ pub mod common_conditions {
160160
/// This run condition is relatively expensive, as it iterates over every entity with this component.
161161
/// As a result, you likely only want to use this run condition when the number of entitities with the component `T` is small.
162162
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()
164164
}
165165
}

0 commit comments

Comments
 (0)