Skip to content

Commit

Permalink
Fix example for user-defined types in documentation for 10.0.0 (#3461)
Browse files Browse the repository at this point in the history
* Fix example for user-defined types in documentation for 10.0.0

* Fix the fix
  • Loading branch information
rlalik authored May 24, 2023
1 parent adad18a commit 8b09fe2
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 != '}') ctx.on_error("invalid format");
if (it != end && *it != '}') FMT_THROW(format_error("invalid format"));

// Return an iterator past the end of the parsed range:
return it;
Expand Down

0 comments on commit 8b09fe2

Please sign in to comment.