Преглед изворни кода

FAQ: fixed typo - thanks @huwpascoe and @Kerndog73

Michele Caini пре 6 година
родитељ
комит
7116df15d6
1 измењених фајлова са 3 додато и 3 уклоњено
  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
 ```cpp
 #if defined(_MSC_VER)
 #if defined(_MSC_VER)
-    #define HS(x)\
+    #define HS(str)\
         __pragma(warning(push))\
         __pragma(warning(push))\
         __pragma(warning(disable:4307))\
         __pragma(warning(disable:4307))\
-        entt::hashed_string{#x}\
+        entt::hashed_string{str}\
         __pragma(warning(pop))
         __pragma(warning(pop))
 #else
 #else
-    #define HS(x) entt::hashed_string{#x}
+    #define HS(str) entt::hashed_string{str}
 #endif
 #endif
 ```
 ```