Update docstrings for some Commands to use the correct type (#12111)

# Objective

- A tiny nit I noticed; I think the type of these function is
`EntityCommand`, not `Command`

Co-authored-by: Charles Bournhonesque <cbournhonesque@snapchat.com>
This commit is contained in:
Charles Bournhonesque 2024-02-25 14:48:33 -05:00 committed by GitHub
parent ff29c43916
commit 5bcc100d10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1086,7 +1086,7 @@ fn try_insert(bundle: impl Bundle) -> impl EntityCommand {
}
}
/// A [`Command`] that removes components from an entity.
/// An [`EntityCommand`] that removes components from an entity.
/// For a [`Bundle`] type `T`, this will remove any components in the bundle.
/// Any components in the bundle that aren't found on the entity will be ignored.
fn remove<T: Bundle>(entity: Entity, world: &mut World) {
@ -1095,7 +1095,7 @@ fn remove<T: Bundle>(entity: Entity, world: &mut World) {
}
}
/// A [`Command`] that removes components from an entity.
/// An [`EntityCommand`] that removes components from an entity.
/// For a [`Bundle`] type `T`, this will remove all components except those in the bundle.
/// Any components in the bundle that aren't found on the entity will be ignored.
fn retain<T: Bundle>(entity: Entity, world: &mut World) {