Skip to content

Commit

Permalink
Update system assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
mvlabat committed Feb 13, 2022
1 parent 96f6043 commit 10510f2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions crates/bevy_ecs/src/query/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ use std::{
/// }
/// }
///
/// # my_system.system();
/// # bevy_ecs::system::assert_is_system(my_system);
/// ```
///
/// ## Mutable queries
Expand Down Expand Up @@ -141,7 +141,8 @@ use std::{
/// println!("Total (mut): {}", health.total());
/// }
/// }
/// # my_system.system();
///
/// # bevy_ecs::system::assert_is_system(my_system);
/// ```
///
/// **Note:** if you omit the `mutable` attribute for a query that doesn't implement
Expand Down Expand Up @@ -236,7 +237,7 @@ use std::{
/// }
/// }
///
/// # my_system.system();
/// # bevy_ecs::system::assert_is_system(my_system);
/// ```
///
/// ## Ignored fields
Expand All @@ -260,7 +261,7 @@ use std::{
/// for _ in query.iter() {}
/// }
///
/// # my_system.system();
/// # bevy_ecs::system::assert_is_system(my_system);
/// ```
///
/// ## Filters
Expand Down Expand Up @@ -299,7 +300,7 @@ use std::{
/// for _ in query.iter() {}
/// }
///
/// # my_system.system();
/// # bevy_ecs::system::assert_is_system(my_system);
/// ```
pub trait WorldQuery {
type Fetch: for<'world, 'state> Fetch<'world, 'state, State = Self::State>;
Expand Down

0 comments on commit 10510f2

Please sign in to comment.