From c87d4c110f60fc0a92c2b37d999e1787a303f1c5 Mon Sep 17 00:00:00 2001 From: szunami Date: Fri, 5 Feb 2021 15:57:47 -0500 Subject: [PATCH] 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 ``` --- crates/bevy_ecs/src/system/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ecs/src/system/commands.rs b/crates/bevy_ecs/src/system/commands.rs index 9e2fba1cc3b23..79696f8cff302 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,