Skip to content

Commit

Permalink
Update example system in documentation (#1403)
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
szunami committed Feb 5, 2021
1 parent 110ff77 commit c87d4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/system/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ impl Commands {
/// b: Component2,
/// }
///
/// fn example_system(mut commands: Commands) {
/// fn example_system(mut commands: &mut Commands) {
/// // Create a new entity with a component bundle.
/// commands.spawn(ExampleBundle {
/// a: Component1,
Expand Down

0 comments on commit c87d4c1

Please sign in to comment.