Documentation improvement system_param.rs

This commit is contained in:
tomaspecl 2025-07-16 04:04:04 +02:00 committed by GitHub
parent 8e14d99fb9
commit 9db5fc843f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,6 +55,8 @@ use variadics_please::{all_tuples, all_tuples_enumerated};
///
/// ```
/// # use bevy_ecs::prelude::*;
/// # #[derive(Component)]
/// # struct SomeComponent;
/// # #[derive(Resource)]
/// # struct SomeResource;
/// # #[derive(BufferedEvent)]
@ -66,6 +68,8 @@ use variadics_please::{all_tuples, all_tuples_enumerated};
/// # struct ParamsExample<'w, 's> {
/// # query:
/// Query<'w, 's, Entity>,
/// # query2:
/// Query<'w, 's, &'static SomeComponent>,
/// # res:
/// Res<'w, SomeResource>,
/// # res_mut: