Skip to content

Commit 99ae716

Browse files
chore: add nodiscard annotation to functions without it
1 parent 563079c commit 99ae716

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/cstringpp.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ class String {
101101
std::array<char, Length> m_str{};
102102
};
103103

104-
constexpr int toLower(char in) {
104+
[[nodiscard]] constexpr int toLower(char in) {
105105
if (in >= 'A' && in <= 'Z') {
106106
return in + 32;
107107
}
108108
return in;
109109
}
110110

111-
constexpr int toUpper(char in) {
111+
[[nodiscard]] constexpr int toUpper(char in) {
112112
if (in >= 'a' && in <= 'z') {
113113
return in - 32;
114114
}

0 commit comments

Comments
 (0)