Browse Source

doc: fixed missing prefix "L" (#622)

Alex Perry 5 năm trước cách đây
mục cha
commit
52cade9267
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      docs/md/core.md

+ 1 - 1
docs/md/core.md

@@ -174,7 +174,7 @@ In this case, the user defined literal to use to create hashed strings on the
 fly is `_hws`:
 
 ```cpp
-constexpr auto str = "text"_hws;
+constexpr auto str = L"text"_hws;
 ```
 
 Note that the hash type of the `hashed_wstring` is the same of its counterpart.