diff --git a/docs/md/entity.md b/docs/md/entity.md index adf6f25d5..3ab679896 100644 --- a/docs/md/entity.md +++ b/docs/md/entity.md @@ -2003,7 +2003,7 @@ iteration undergoes in-place deletion.
As an example, consider the following snippet: ```cpp -registry.view([&](const auto entity, auto &pos) { +registry.view().each([&](const auto entity, auto &pos) { registry.emplace(registry.create(), 0., 0.); // references remain stable after adding new instances pos.x = 0.;