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

[DOCS] removed excess "registry." in groups code sample (#181)

Erik Scholz 7 жил өмнө
parent
commit
9c55111e14
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      docs/entity.md

+ 1 - 1
docs/entity.md

@@ -1040,7 +1040,7 @@ Or rely on the `each` member function to iterate entities and get all their
 components at once:
 
 ```cpp
-registry.registry.group<position>(entt::get<velocity>).each([](auto entity, auto &pos, auto &vel) {
+registry.group<position>(entt::get<velocity>).each([](auto entity, auto &pos, auto &vel) {
     // ...
 });
 ```