mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +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**::
|
**Example**::
|
||||||
|
|
||||||
#include <fmt/format.h>
|
#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
|
\endrst
|
||||||
*/
|
*/
|
||||||
# define fmt(s) FMT_STRING(s)
|
# define fmt(s) FMT_STRING(s)
|
||||||
|
Loading…
Reference in New Issue
Block a user