From 7967807d2dc012d7433a9a71f34306acae0688b7 Mon Sep 17 00:00:00 2001 From: Elliott Pierce Date: Sat, 31 May 2025 18:40:10 -0400 Subject: [PATCH] fix command doc --- crates/bevy_ecs/src/system/commands/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ecs/src/system/commands/mod.rs b/crates/bevy_ecs/src/system/commands/mod.rs index 8075c72e5a..5159d578f3 100644 --- a/crates/bevy_ecs/src/system/commands/mod.rs +++ b/crates/bevy_ecs/src/system/commands/mod.rs @@ -506,7 +506,7 @@ impl<'w, 's> Commands<'w, 's> { /// // Get the entity if it still exists and store the `EntityCommands`. /// // If it doesn't exist, the `?` operator will propagate the returned error /// // to the system, and the system will pass it to an error handler. - /// let mut entity_commands = commands.get_entity(player.entity)?; + /// let mut entity_commands = commands.get_constructed_entity(player.entity)?; /// /// // Add a component to the entity. /// entity_commands.insert(Label("hello world"));