diff --git a/crates/bevy_render/src/extract_param.rs b/crates/bevy_render/src/extract_param.rs index f68d6ac8a2f9e3..95ba1333ae5581 100644 --- a/crates/bevy_render/src/extract_param.rs +++ b/crates/bevy_render/src/extract_param.rs @@ -36,6 +36,10 @@ impl FromWorld for MainWorldState

{ /// ## Examples /// /// ```rust +/// use bevy_ecs::prelude::*; +/// use bevy_render::Extract; +/// # #[derive(Component)] +/// # struct Cloud; /// fn extract_clouds(mut commands: Commands, mut clouds: Extract>>) { /// for cloud in clouds.value().iter() { /// commands.get_or_spawn(cloud).insert(Cloud);