فهرست منبع

doc: typo (thanks @DNKpp)

Michele Caini 3 سال پیش
والد
کامیت
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:
 As an example, consider the following snippet:
 
 
 ```cpp
 ```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.);
     registry.emplace<position>(registry.create(), 0., 0.);
     // references remain stable after adding new instances
     // references remain stable after adding new instances
     pos.x = 0.;
     pos.x = 0.;