Explorar o código

doc: fixed typo (close #534)

Michele Caini %!s(int64=5) %!d(string=hai) anos
pai
achega
d1d73da039
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/md/core.md

+ 1 - 1
docs/md/core.md

@@ -393,7 +393,7 @@ If used in combination with hashed strings, it helps to use human-readable names
 where types would be required otherwise. As an example:
 where types would be required otherwise. As an example:
 
 
 ```cpp
 ```cpp
-registry.assign<entt::tag<"enemy"_hs>>(entity);
+registry.emplace<entt::tag<"enemy"_hs>>(entity);
 ```
 ```
 
 
 However, this isn't the only permitted use. Literally any value convertible to
 However, this isn't the only permitted use. Literally any value convertible to