Update example system in documentation (#1403)
The existing snippet fails to compile with: ``` no method named `system` found for fn item `fn(bevy::prelude::Commands) {example_system}` in the current scope ```
This commit is contained in:
parent
110ff77db9
commit
c87d4c110f
@ -206,7 +206,7 @@ impl Commands {
|
|||||||
/// b: Component2,
|
/// b: Component2,
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
/// fn example_system(mut commands: Commands) {
|
/// fn example_system(mut commands: &mut Commands) {
|
||||||
/// // Create a new entity with a component bundle.
|
/// // Create a new entity with a component bundle.
|
||||||
/// commands.spawn(ExampleBundle {
|
/// commands.spawn(ExampleBundle {
|
||||||
/// a: Component1,
|
/// a: Component1,
|
||||||
|
Loading…
Reference in New Issue
Block a user