Skip to content

Commit

Permalink
Fixup docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed Apr 3, 2022
1 parent 4b92626 commit 9ddd64d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/bevy_render/src/extract_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ impl<P: SystemParam> FromWorld for MainWorldState<P> {
/// ## Examples
///
/// ```rust
/// use bevy_ecs::prelude::*;
/// use bevy_render::Extract;
/// # #[derive(Component)]
/// # struct Cloud;
/// fn extract_clouds(mut commands: Commands, mut clouds: Extract<Query<Entity, With<Cloud>>>) {
/// for cloud in clouds.value().iter() {
/// commands.get_or_spawn(cloud).insert(Cloud);
Expand Down

0 comments on commit 9ddd64d

Please sign in to comment.