From c17816cb4ab6c834a8e35f9721ca05e1719d637f Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Fri, 15 Mar 2024 18:25:42 +0500 Subject: [PATCH] Fix invalid fmt::formatter<>::format return type (#3895) Signed-off-by: Vladislav Shchapov --- doc/api.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api.rst b/doc/api.rst index ca193bda..0c594d9a 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -140,7 +140,7 @@ without implementing them yourself. For example:: // parse is inherited from formatter. auto format(color c, format_context& ctx) const - -> format_parse_context::iterator; + -> format_context::iterator; }; // color.cc: @@ -148,7 +148,7 @@ without implementing them yourself. For example:: #include auto fmt::formatter::format(color c, format_context& ctx) const - -> format_parse_context::iterator { + -> format_context::iterator { string_view name = "unknown"; switch (c) { case color::red: name = "red"; break;