Skip to content

Commit

Permalink
Update crates/bevy_ecs/src/component.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
  • Loading branch information
afonsolage and alice-i-cecile authored Mar 4, 2024
1 parent d78c7a9 commit 20b5cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ pub struct ComponentHooks {

impl ComponentHooks {
/// Register a [`ComponentHook`] that will be run when this component is added to an entity.
/// An `on_add` hook will always be followed by `on_insert`. Spawning an entity counts as
/// An `on_add` hook will always run before `on_insert` hooks. Spawning an entity counts as
/// adding all of it's components.
///
/// Will panic if the component already has an `on_add` hook
Expand Down

0 comments on commit 20b5cda

Please sign in to comment.