Fix example for user-defined types in documentation for 10.0.0 (#3461)

* Fix example for user-defined types in documentation for 10.0.0

* Fix the fix
This commit is contained in:
rlalik 2023-05-24 15:25:51 +02:00 committed by GitHub
parent adad18a74d
commit 8b09fe2a0a
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 != '}') 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;