Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
May 24, 2023

Conversation

rlalik
Copy link
Contributor

@rlalik rlalik commented May 24, 2023

Fix to issue #3458

doc/api.rst Outdated
@@ -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 != '}') format_error("invalid format");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (it != end && *it != '}') FMT_THROW(format_error("invalid format"));

@vitaut vitaut merged commit 8b09fe2 into fmtlib:master May 24, 2023
@vitaut
Copy link
Contributor

vitaut commented May 24, 2023

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants