diff --git a/crates/bevy_ecs/src/query/state.rs b/crates/bevy_ecs/src/query/state.rs index c96dbca393..ca44e44d98 100644 --- a/crates/bevy_ecs/src/query/state.rs +++ b/crates/bevy_ecs/src/query/state.rs @@ -140,7 +140,7 @@ impl QueryState { } /// Takes a query for the given [`World`], checks if the given world is the same as the query, and - /// generates new archetypes for the given world. + /// updates the [`QueryState`]'s view of the [`World`] with any newly-added archetypes. /// /// # Panics /// @@ -166,7 +166,8 @@ impl QueryState { ); } - /// Creates a new [`Archetype`]. + /// Update the current [`QueryState`] with information from the provided [`Archetype`] + /// (if applicable, i.e. if the archetype has any intersecting [`ComponentId`] with the current [`QueryState`]). pub fn new_archetype(&mut self, archetype: &Archetype) { if Q::matches_component_set(&self.fetch_state, &|id| archetype.contains(id)) && F::matches_component_set(&self.filter_state, &|id| archetype.contains(id))