diff --git a/crates/bevy_ecs/src/system/commands.rs b/crates/bevy_ecs/src/system/commands.rs index 9e2fba1cc3..79696f8cff 100644 --- a/crates/bevy_ecs/src/system/commands.rs +++ b/crates/bevy_ecs/src/system/commands.rs @@ -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,