mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-11 21:38:05 +00:00
Improve comment
This commit is contained in:
parent
c3d05245fe
commit
6d339e32a0
@ -3536,7 +3536,8 @@ operator"" _a(const wchar_t *s, std::size_t) { return {s}; }
|
||||
**Example**::
|
||||
|
||||
#include <fmt/format.h>
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user