Skip to content

Commit c17816c

Browse files
authored
Fix invalid fmt::formatter<>::format return type (#3895)
Signed-off-by: Vladislav Shchapov <[email protected]>
1 parent df6e7b2 commit c17816c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ without implementing them yourself. For example::
140140
// parse is inherited from formatter<string_view>.
141141

142142
auto format(color c, format_context& ctx) const
143-
-> format_parse_context::iterator;
143+
-> format_context::iterator;
144144
};
145145

146146
// color.cc:
147147
#include "color.h"
148148
#include <fmt/format.h>
149149

150150
auto fmt::formatter<color>::format(color c, format_context& ctx) const
151-
-> format_parse_context::iterator {
151+
-> format_context::iterator {
152152
string_view name = "unknown";
153153
switch (c) {
154154
case color::red: name = "red"; break;

0 commit comments

Comments
 (0)