Skip to content

Commit 7a0d301

Browse files
authored
Update README.rst
1 parent f2b03fa commit 7a0d301

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ Output::
143143

144144
.. code:: c++
145145

146-
std::string s = fmt::format(FMT_STRING("{:d}"), "I am not a number");
146+
std::string s = fmt::format("{:d}", "I am not a number");
147147

148-
This gives a compile-time error because ``d`` is an invalid format specifier for
149-
a string.
148+
This gives a compile-time error in C++20 because ``d`` is an invalid format
149+
specifier for a string.
150150

151151
**Write a file from a single thread**
152152

0 commit comments

Comments
 (0)