From 7a0d3017532f5da3403481afd1df0b7388220323 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 4 Jul 2021 07:03:20 -0700 Subject: [PATCH] Update README.rst --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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**