ソースを参照

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

Erik Scholz 7 年 前
コミット
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) {
     // ...
 });
 ```