Skip to content

Commit

Permalink
Update api.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut authored May 24, 2023
1 parent 8b09fe2 commit abdb7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit abdb7fd

Please sign in to comment.