Sfoglia il codice sorgente

doc: minor changes

Michele Caini 4 anni fa
parent
commit
25c7436652
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      docs/md/entity.md

+ 2 - 2
docs/md/entity.md

@@ -1209,8 +1209,8 @@ them by copy if needed:
 ```cpp
 ```cpp
 // create a copy of an entity component by component
 // create a copy of an entity component by component
 for(auto &&curr: registry.storage()) {
 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));
     }
     }
 }
 }
 ```
 ```