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:
szunami 2021-02-05 15:57:47 -05:00 committed by GitHub
parent 110ff77db9
commit c87d4c110f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,