Remove documentation warning on EntityCommands::insert that is no longer necessary (#3653)

# Objective

- Removes warning about accidently inserting bundles with `EntityCommands::insert`, but since a component now needs to implement `Component` it is unnecessary.
This commit is contained in:
Isse 2022-01-13 00:24:31 +00:00
parent bc499591c2
commit 84144c9429

View file

@ -417,16 +417,6 @@ impl<'w, 's, 'a> EntityCommands<'w, 's, 'a> {
/// Adds a single [`Component`] to the entity.
///
/// See [`EntityMut::insert`](crate::world::EntityMut::insert) for more
/// details.
///
/// # Warning
///
/// It's possible to call this with a bundle, but this is likely not intended and
/// [`Self::insert_bundle`] should be used instead. If `with` is called with a bundle, the
/// bundle itself will be added as a component instead of the bundles' inner components each
/// being added.
///
/// # Example
///
/// `Self::insert` can be chained with [`Commands::spawn`].