mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-14 12:40:32 +00:00
Cleanup example
This commit is contained in:
parent
445f5d392b
commit
dc69afad14
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user