Skip to content

Commit

Permalink
Add missing argument in relationship manual example
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Sep 29, 2023
1 parent 34c5a0d commit e666c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Relationships.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ world.filter_builder()
.term(Eats, flecs::Wildcard)
.build()
.each([](flecs::iter& it, size_t i) {
flecs::entity food = it.pair().second(); // Apples, ...
flecs::entity food = it.pair(1).second(); // Apples, ...
flecs::entity e = it.entity(i);
// Iterate as usual
});
Expand Down

0 comments on commit e666c86

Please sign in to comment.