Simplify presentation type parsing

This commit is contained in:
Victor Zverovich
2023-01-01 16:14:17 -08:00
parent 14a69fcc54
commit aad546baa5
2 changed files with 6 additions and 11 deletions
+1 -1
View File
@@ -504,7 +504,7 @@ void vprintf(buffer<Char>& buf, basic_string_view<Char> format,
}
specs.type = parse_presentation_type(type, arg.type());
if (specs.type == presentation_type::none)
throw_format_error("invalid type specifier");
throw_format_error("invalid format specifier");
start = it;