Explorar o código

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

Elias Daler %!s(int64=6) %!d(string=hai) anos
pai
achega
1c0fdbed59
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/md/entity.md

+ 1 - 1
docs/md/entity.md

@@ -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.);