Explorar el Código

doc: minor changes

Michele Caini hace 4 años
padre
commit
25c7436652
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      docs/md/entity.md

+ 2 - 2
docs/md/entity.md

@@ -1209,8 +1209,8 @@ them by copy if needed:
 ```cpp
 // create a copy of an entity component by component
 for(auto &&curr: registry.storage()) {
-    if(auto &storage = curr.second; storage.contains(entity)) {
-        storage.emplace(other, storage.get(entity));
+    if(auto &storage = curr.second; storage.contains(src)) {
+        storage.emplace(dst, storage.get(src));
     }
 }
 ```