Skip to content

Commit 2e3e7d3

Browse files
Fix typo
1 parent 570681b commit 2e3e7d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/StringExt.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ namespace StringExt
3939
std::same_as<T, std::string> || std::same_as<T, std::wstring> ||
4040
std::same_as<T, QString>;
4141

42-
// Ingores ""q instead of ""_q. Thank you C++ committie for another useless warning.
42+
// Ingores ""q instead of ""_q. Thank you C++ committee for another useless warning.
4343
#pragma GCC diagnostic push
4444
#pragma GCC diagnostic ignored "-Wliteral-suffix"
4545
/// @brief Works fine, but not a compile-time optimized.
4646
/// @brief To be able optimize it in compile-time update to Qt 6.4 >= due to constexpr ctor in QString.
4747
/// @brief Reference: https://doc.qt.io/qt-6/qstring.html#operator-22-22_s
48+
/// @example QString qstr = "text"q + "sample";
4849
inline QString operator""q (const char* str, size_t len) noexcept { return QString::fromUtf8(str, len); }
4950
inline QString operator""q (const wchar_t* str, size_t len) noexcept { return QString::fromWCharArray(str, len); }
5051
#pragma GCC diagnostic pop

0 commit comments

Comments
 (0)