Skip to content

Commit

Permalink
Use assert_is_system instead
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed Feb 11, 2022
1 parent 0acc369 commit c271a28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ecs/src/system/system_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ pub mod lifetimeless {
/// fn do_thing_generically<T: SystemParam + 'static>(t: StaticSystemParam<T>) {}
///
/// fn check_always_is_system<T: SystemParam + 'static>(){
/// do_thing_generically::<T>.system();
/// bevy_ecs::system::assert_is_system(do_thing_generically::<T>);
/// }
/// ```
/// Note that in a real case you'd generally want
Expand Down Expand Up @@ -1379,7 +1379,7 @@ pub mod lifetimeless {
/// phantom: core::marker::PhantomData<&'w &'s ()>
/// }
/// # fn check_always_is_system<T: SystemParam + 'static>(){
/// # do_thing_generically::<T>.system();
/// # bevy_ecs::system::assert_is_system(do_thing_generically::<T>);
/// # }
/// ```
///
Expand Down

0 comments on commit c271a28

Please sign in to comment.