Fix typo in docs (s/comp/velocity) (#468)

This commit is contained in:
Elias Daler
2020-04-20 23:32:52 +03:00
committed by GitHub
parent 37bb10e564
commit 1c0fdbed59

View File

@@ -250,7 +250,7 @@ registry.emplace_or_replace<position>(entity, 0., 0.);
This is a slightly faster alternative for the following snippet:
```cpp
if(registry.has<comp>(entity)) {
if(registry.has<velocity>(entity)) {
registry.replace<velocity>(entity, 0., 0.);
} else {
registry.emplace<velocity>(entity, 0., 0.);