From 6d339e32a0883181f994cbf60b85c3516612caf7 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 16 Mar 2018 16:26:31 -0400 Subject: [PATCH] Improve comment --- include/fmt/format.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)