Parcourir la source

doc: minor changes

skypjack il y a 5 mois
Parent
commit
f49f2331ba
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      docs/md/core.md

+ 3 - 3
docs/md/core.md

@@ -639,7 +639,7 @@ These are the information made available by `type_info`:
   This is also an alias for the following:
 
   ```cpp
-  auto idx = entt::type_index<std::remove_cv_t<std::remove_reference_t<a_type>>>::value();
+  auto idx = entt::type_index<std::remove_const_t<std::remove_reference_t<a_type>>>::value();
   ```
 
 * The hash value associated with a given type:
@@ -651,7 +651,7 @@ These are the information made available by `type_info`:
   This is also an alias for the following:
 
   ```cpp
-  auto hash = entt::type_hash<std::remove_cv_t<std::remove_reference_t<a_type>>>::value();
+  auto hash = entt::type_hash<std::remove_const_t<std::remove_reference_t<a_type>>>::value();
   ```
 
 * The name associated with a given type:
@@ -663,7 +663,7 @@ These are the information made available by `type_info`:
   This is also an alias for the following:
 
   ```cpp
-  auto name = entt::type_name<std::remove_cv_t<std::remove_reference_t<a_type>>>::value();
+  auto name = entt::type_name<std::remove_const_t<std::remove_reference_t<a_type>>>::value();
   ```
 
 Where all accessed features are available at compile-time, the `type_info` class