doc: finish documentation of StringHelper

This commit is contained in:
2024-07-17 14:18:54 +08:00
parent b13bb445e4
commit 94386c93aa
5 changed files with 102 additions and 6 deletions

View File

@ -84,7 +84,7 @@ namespace YYCC::ParserHelper {
return yycc_u8string(buffer.data(), EncodingHelper::ToUTF8(ptr) - buffer.data());
} else if (ec == std::errc::value_too_large) {
// too short buffer
// this should not happend
// this should not happened
throw std::out_of_range("ToString() buffer is not sufficient.");
} else {
// unreachable