diff --git a/doc/api.rst b/doc/api.rst index c6665daa..ab918cc4 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -165,8 +165,8 @@ You can also write a formatter for a hierarchy of classes:: virtual std::string name() const { return "B"; } }; - template - struct fmt::formatter::value, char>> : + template + struct fmt::formatter::value>> : fmt::formatter { template auto format(const A& a, FormatCtx& ctx) {