From fdae346aa63f6381f5dcb2e0a61e09e1a2679b0a Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 25 Aug 2022 15:07:34 +0200 Subject: [PATCH] doc: typo (thanks @DNKpp) --- docs/md/entity.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.;