Skip to content

Commit 7010677

Browse files
committed
Fix example in AnyOf docs (#5798)
1 parent 7da97b4 commit 7010677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_ecs/src/query/fetch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ macro_rules! impl_tuple_fetch {
14131413

14141414
/// The `AnyOf` query parameter fetches entities with any of the component types included in T.
14151415
///
1416-
/// `Query<AnyOf<(&A, &B, &mut C)>>` is equivalent to `Query<(Option<&A>, Option<&B>, Option<&mut C>), (Or(With<A>, With<B>, With<C>)>`.
1416+
/// `Query<AnyOf<(&A, &B, &mut C)>>` is equivalent to `Query<(Option<&A>, Option<&B>, Option<&mut C>), Or<(With<A>, With<B>, With<C>)>>`.
14171417
/// Each of the components in `T` is returned as an `Option`, as with `Option<A>` queries.
14181418
/// Entities are guaranteed to have at least one of the components in `T`.
14191419
#[derive(Clone)]

0 commit comments

Comments
 (0)