diff --git a/README.rst b/README.rst index 02c849c7..12d547b6 100644 --- a/README.rst +++ b/README.rst @@ -143,10 +143,10 @@ Output:: .. code:: c++ - std::string s = fmt::format(FMT_STRING("{:d}"), "I am not a number"); + std::string s = fmt::format("{:d}", "I am not a number"); -This gives a compile-time error because ``d`` is an invalid format specifier for -a string. +This gives a compile-time error in C++20 because ``d`` is an invalid format +specifier for a string. **Write a file from a single thread**