fix command doc

This commit is contained in:
Elliott Pierce 2025-05-31 18:40:10 -04:00
parent 63effde692
commit 7967807d2d

View File

@ -506,7 +506,7 @@ impl<'w, 's> Commands<'w, 's> {
/// // Get the entity if it still exists and store the `EntityCommands`. /// // Get the entity if it still exists and store the `EntityCommands`.
/// // If it doesn't exist, the `?` operator will propagate the returned error /// // 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. /// // 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. /// // Add a component to the entity.
/// entity_commands.insert(Label("hello world")); /// entity_commands.insert(Label("hello world"));