Update api.rst

This commit is contained in:
Victor Zverovich 2023-05-24 06:30:48 -07:00 committed by GitHub
parent 8b09fe2a0a
commit abdb7fdf88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,7 @@ For example::
if (it != end && (*it == 'f' || *it == 'e')) presentation = *it++;
// Check if reached the end of the range:
if (it != end && *it != '}') FMT_THROW(format_error("invalid format"));
if (it != end && *it != '}') throw format_error("invalid format");
// Return an iterator past the end of the parsed range:
return it;