Michele Caini hace 7 años
padre
commit
0173060eaf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      docs/entity.md

+ 1 - 1
docs/entity.md

@@ -1152,7 +1152,7 @@ for(auto entity: view) {
     auto &velocity = registry.get<velocity>(entity);
 
     // ... or multiple components at once
-    auto &[pos, vel] = view.get<position, velocity>(entity);
+    auto &[pos, vel] = registry.get<position, velocity>(entity);
 
     // ...
 }