Explorar o código

doc: typo (thanks @DNKpp)

Michele Caini %!s(int64=3) %!d(string=hai) anos
pai
achega
fdae346aa6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/md/entity.md

+ 1 - 1
docs/md/entity.md

@@ -2003,7 +2003,7 @@ iteration undergoes in-place deletion.<br/>
 As an example, consider the following snippet:
 
 ```cpp
-registry.view<position>([&](const auto entity, auto &pos) {
+registry.view<position>().each([&](const auto entity, auto &pos) {
     registry.emplace<position>(registry.create(), 0., 0.);
     // references remain stable after adding new instances
     pos.x = 0.;