Fix invalid fmt::formatter<>::format return type (#3895)

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
Vladislav Shchapov 2024-03-15 18:25:42 +05:00 committed by GitHub
parent df6e7b22f7
commit c17816cb4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -140,7 +140,7 @@ without implementing them yourself. For example::
// parse is inherited from formatter<string_view>.
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 <fmt/format.h>
auto fmt::formatter<color>::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;