forked from fmtlib/fmt
Cleanup example
This commit is contained in:
@@ -111,8 +111,8 @@ Check a format string at compile time:
|
|||||||
|
|
||||||
.. code:: c++
|
.. code:: c++
|
||||||
|
|
||||||
// test.cc
|
|
||||||
#include <fmt/format.h>
|
#include <fmt/format.h>
|
||||||
|
|
||||||
std::string s = format(FMT_STRING("{:d}"), "hello");
|
std::string s = format(FMT_STRING("{:d}"), "hello");
|
||||||
|
|
||||||
gives a compile-time error because ``d`` is an invalid format specifier for a
|
gives a compile-time error because ``d`` is an invalid format specifier for a
|
||||||
|
Reference in New Issue
Block a user