mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-05 02:27:45 +00:00
Update api.rst
This commit is contained in:
parent
8b09fe2a0a
commit
abdb7fdf88
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user