diff --git a/include/fmt/format.h b/include/fmt/format.h index 5044f640..b54edec7 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3536,7 +3536,8 @@ operator"" _a(const wchar_t *s, std::size_t) { return {s}; } **Example**:: #include - std::string s = fmt::format(fmt("{:d}"), "foo"); // fails to compile + // A compile-time error because 'd' is an invalid specifier for strings. + std::string s = fmt::format(fmt("{:d}"), "foo"); \endrst */ # define fmt(s) FMT_STRING(s)