some fixes

This commit is contained in:
jorenchik
2024-11-16 17:47:43 +02:00
parent f99d44b69e
commit fea07b031e
5 changed files with 31 additions and 36 deletions

View File

@@ -88,7 +88,7 @@ Result<NoneType> ValidateGrammar(const std::vector<Token>& tokens) {
auto capitalize = [](const std::string& str) {
if (str.empty()) return str;
std::string result = str;
result[0] = std::towupper(result[0]);
result[0] = std::toupper(result[0]);
return result;
};
return {