diff --git a/README.md b/README.md index c45d7a0a..1aab857b 100644 --- a/README.md +++ b/README.md @@ -303,7 +303,7 @@ struct fmt::formatter : fmt::formatter { auto format(my_type my, format_context &ctx) const -> decltype(ctx.out()) { - return format_to(ctx.out(), "[my_type i={}]", my.i); + return fmt::format_to(ctx.out(), "[my_type i={}]", my.i); } }; diff --git a/example/example.cpp b/example/example.cpp index a2daf372..26b92a15 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -281,7 +281,7 @@ struct fmt::formatter : fmt::formatter { template <> struct std::formatter : std::formatter { auto format(my_type my, format_context &ctx) const -> decltype(ctx.out()) { - return format_to(ctx.out(), "[my_type i={}]", my.i); + return std::format_to(ctx.out(), "[my_type i={}]", my.i); } }; #endif