mirror of
https://github.com/fmtlib/fmt.git
synced 2026-02-16 23:29:57 +08:00
Update README.rst
This commit is contained in:
parent
3f4839ce3d
commit
d0110b7e35
@ -143,7 +143,7 @@ Output::
|
|||||||
|
|
||||||
.. code:: c++
|
.. code:: c++
|
||||||
|
|
||||||
std::string s = fmt::format(FMT_STRING("{:d}"), "don't panic");
|
std::string s = fmt::format(FMT_STRING("{:d}"), "I am not a number");
|
||||||
|
|
||||||
This gives a compile-time error because ``d`` is an invalid format specifier for
|
This gives a compile-time error because ``d`` is an invalid format specifier for
|
||||||
a string.
|
a string.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user