1
0
Эх сурвалжийг харах

doc: typo (thanks @DNKpp)

Michele Caini 3 жил өмнө
parent
commit
fdae346aa6
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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.;