Skip to content

Commit

Permalink
Should be world.event not .emit (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
awest03 authored Sep 8, 2024
1 parent cb7769a commit d2f6537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ObserversManual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1808,7 +1808,7 @@ world.observer<Position>()
flecs::entity e = world.entity().set(Position{10, 20});
// Emit custom event
world.emit<Synchronized>()
world.event<Synchronized>()
.id<Position>()
.entity(e)
.emit();
Expand Down

0 comments on commit d2f6537

Please sign in to comment.