doc: minor changes

This commit is contained in:
Michele Caini
2021-12-21 14:10:33 +01:00
parent 771c449621
commit 25c7436652

View File

@@ -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));
}
}
```