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 authored and cart committed Mar 15, 2022
1 parent 054ce4a commit 8a300c4
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 @@ -1275,7 +1275,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 @@ -1303,7 +1303,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 8a300c4

Please sign in to comment.