Improve child_builder add_child documentation slightly (#16663)

A small documentation improvement. The description was copied from
insert_children. I changed the documentation to be singular instead of
plural when referring to the child in add_child.

# Objective

- The description was copied from insert_children and still refers to
the child being added as plural children

## Solution

- Description now has child in singular form.

## Testing

- N/A

---------

Co-authored-by: IQuick 143 <IQuick143cz@gmail.com>
This commit is contained in:
Victor El Hajj 2024-12-10 04:15:52 +01:00 committed by GitHub
parent 1f884de53c
commit 277cfa5a4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -385,8 +385,8 @@ pub trait BuildChildren {
/// Adds a single child. /// Adds a single child.
/// ///
/// If the children were previously children of another parent, that parent's [`Children`] component /// If the child was previously the child of another parent, that parent's [`Children`] component
/// will have those children removed from its list. Removing all children from a parent causes its /// will have the child removed from its list. Removing all children from a parent causes its
/// [`Children`] component to be removed from the entity. /// [`Children`] component to be removed from the entity.
/// ///
/// # Panics /// # Panics