diff --git a/docs/Relationships.md b/docs/Relationships.md index 1d38178ca1..828be813ca 100644 --- a/docs/Relationships.md +++ b/docs/Relationships.md @@ -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 });