diff options
Diffstat (limited to 'ecs/examples/component_removed_event.rs')
-rw-r--r-- | ecs/examples/component_removed_event.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/examples/component_removed_event.rs b/ecs/examples/component_removed_event.rs index ffa37f4..e8d1a47 100644 --- a/ecs/examples/component_removed_event.rs +++ b/ecs/examples/component_removed_event.rs @@ -20,8 +20,8 @@ fn eat_cheese(query: Query<(&Cheese,)>, mut actions: Actions) fn on_cheese_removed(observe: Observe<Pair<Removed, Cheese>>) { - for cheese_ent in &observe { - println!("Cheese entity {} was eaten", cheese_ent.uid()); + for evt_match in &observe { + println!("Cheese entity {} was eaten", evt_match.id()); } } |