From 8b09fe2a0a76ccd4deffec8328e60ffc0ad45704 Mon Sep 17 00:00:00 2001 From: rlalik Date: Wed, 24 May 2023 15:25:51 +0200 Subject: [PATCH] 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 --- doc/api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api.rst b/doc/api.rst index c593b13f..5f55a978 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -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;