Skip to content

Commit 10510f2

Browse files
committed
Update system assertions
1 parent 96f6043 commit 10510f2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

crates/bevy_ecs/src/query/fetch.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ use std::{
8888
/// }
8989
/// }
9090
///
91-
/// # my_system.system();
91+
/// # bevy_ecs::system::assert_is_system(my_system);
9292
/// ```
9393
///
9494
/// ## Mutable queries
@@ -141,7 +141,8 @@ use std::{
141141
/// println!("Total (mut): {}", health.total());
142142
/// }
143143
/// }
144-
/// # my_system.system();
144+
///
145+
/// # bevy_ecs::system::assert_is_system(my_system);
145146
/// ```
146147
///
147148
/// **Note:** if you omit the `mutable` attribute for a query that doesn't implement
@@ -236,7 +237,7 @@ use std::{
236237
/// }
237238
/// }
238239
///
239-
/// # my_system.system();
240+
/// # bevy_ecs::system::assert_is_system(my_system);
240241
/// ```
241242
///
242243
/// ## Ignored fields
@@ -260,7 +261,7 @@ use std::{
260261
/// for _ in query.iter() {}
261262
/// }
262263
///
263-
/// # my_system.system();
264+
/// # bevy_ecs::system::assert_is_system(my_system);
264265
/// ```
265266
///
266267
/// ## Filters
@@ -299,7 +300,7 @@ use std::{
299300
/// for _ in query.iter() {}
300301
/// }
301302
///
302-
/// # my_system.system();
303+
/// # bevy_ecs::system::assert_is_system(my_system);
303304
/// ```
304305
pub trait WorldQuery {
305306
type Fetch: for<'world, 'state> Fetch<'world, 'state, State = Self::State>;

0 commit comments

Comments
 (0)