diff --git a/crates/bevy_ecs/hecs/src/query.rs b/crates/bevy_ecs/hecs/src/query.rs index 14794c9686fd7..120e392597f02 100644 --- a/crates/bevy_ecs/hecs/src/query.rs +++ b/crates/bevy_ecs/hecs/src/query.rs @@ -322,9 +322,8 @@ pub struct Or(PhantomData); #[doc(hidden)] pub struct FetchOr(T); -/// Query transformer that skips entities that have a `T` component that has -/// not been mutated since the last pass of the system. This does not include -/// components that were added in since the last pass. +/// Query transformer that retrieves components of type `T` that have been mutated since the start of the frame. +/// Added components do not count as mutated. pub struct Mutated<'a, T> { value: &'a T, } @@ -389,7 +388,7 @@ impl<'a, T: Component> Fetch<'a> for FetchMutated { } } -#[allow(missing_docs)] +/// Query transformer that retrieves components of type `T` that have been added since the start of the frame. pub struct Added<'a, T> { value: &'a T, } @@ -452,8 +451,7 @@ impl<'a, T: Component> Fetch<'a> for FetchAdded { } } -/// Query transformer skipping entities that have not been either mutated or added -/// since the last pass of the system +/// Query transformer that retrieves components of type `T` that have either been mutated or added since the start of the frame. pub struct Changed<'a, T> { value: &'a T, }