Pārlūkot izejas kodu

FAQ: fixed typo - thanks @huwpascoe and @Kerndog73

Michele Caini 6 gadi atpakaļ
vecāks
revīzija
7116df15d6
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      docs/md/faq.md

+ 3 - 3
docs/md/faq.md

@@ -126,13 +126,13 @@ here is a workaround in the form of a macro:
 
 ```cpp
 #if defined(_MSC_VER)
-    #define HS(x)\
+    #define HS(str)\
         __pragma(warning(push))\
         __pragma(warning(disable:4307))\
-        entt::hashed_string{#x}\
+        entt::hashed_string{str}\
         __pragma(warning(pop))
 #else
-    #define HS(x) entt::hashed_string{#x}
+    #define HS(str) entt::hashed_string{str}
 #endif
 ```