Просмотр исходного кода

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

Erik Scholz 7 лет назад
Родитель
Сommit
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) {
     // ...
 });
 ```