Skip to content

Commit e6d6550

Browse files
Update crates/bevy_ecs/src/query/access.rs docs
Co-authored-by: Alice Cecile <[email protected]>
1 parent ba9cb81 commit e6d6550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_ecs/src/query/access.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ impl<T: SparseSetIndex> FilteredAccess<T> {
272272

273273
/// Adds a `With` filter: corresponds to a conjunction (AND) operation.
274274
///
275-
/// For example, in case we have `Or<(With<A>, With<B>)>`, which is represented by an array of two `AccessFilter` instances,
276-
/// adding `AND With<C>` gets expanded into `Or<((With<A>, With<C>), (With<B>, With<C>))>`.
275+
/// Suppose we begin with `Or<(With<A>, With<B>)>`, which is represented by an array of two `AccessFilter` instances.
276+
/// Adding `AND With<C>` via this method transforms it into the equivalent of `Or<((With<A>, With<C>), (With<B>, With<C>))>`.
277277
pub fn and_with(&mut self, index: T) {
278278
let index = index.sparse_set_index();
279279
for filter in &mut self.filter_sets {

0 commit comments

Comments
 (0)