diff --git a/README.md b/README.md index 35c03422..6ce32fb6 100644 --- a/README.md +++ b/README.md @@ -293,7 +293,7 @@ void multi_sink_example2() template<> struct fmt::formatter : fmt::formatter { - auto format(my_type my, format_context &ctx) -> decltype(ctx.out()) + auto format(my_type my, format_context &ctx) const -> decltype(ctx.out()) { return format_to(ctx.out(), "[my_type i={}]", my.i); }