Skip to content

Commit

Permalink
Move `WorldQuery safety section up
Browse files Browse the repository at this point in the history
  • Loading branch information
Nilirad committed Jul 31, 2022
1 parent fbf1e4a commit b3fa3fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/bevy_ecs/src/query/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ use std::{cell::UnsafeCell, marker::PhantomData};
///
/// Implementing the trait manually can allow for a fundamentally new type of behaviour.
///
/// # Safety
///
/// component access of `ROQueryFetch<Self>` must be a subset of `QueryFetch<Self>`
/// and `ROQueryFetch<Self>` must match exactly the same archetypes/tables as `QueryFetch<Self>`
///
/// # Trait derivation
///
/// Query design can be easily structured by deriving `WorldQuery` for custom types.
Expand Down Expand Up @@ -274,11 +279,6 @@ use std::{cell::UnsafeCell, marker::PhantomData};
/// # bevy_ecs::system::assert_is_system(my_system);
/// ```
///
/// # Safety
///
/// component access of `ROQueryFetch<Self>` must be a subset of `QueryFetch<Self>`
/// and `ROQueryFetch<Self>` must match exactly the same archetypes/tables as `QueryFetch<Self>`
///
/// [`Added`]: crate::query::Added
/// [`Changed`]: crate::query::Changed
/// [`Or`]: crate::query::Or
Expand Down

0 comments on commit b3fa3fc

Please sign in to comment.