From 7955dc479c4385a3ee4559595e332289a335b9e2 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 29 Jun 2014 11:57:36 -0700 Subject: [PATCH] Update readme. --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 08e7b45c..3556419c 100644 --- a/README.rst +++ b/README.rst @@ -54,13 +54,13 @@ This prints ``Hello, world!`` to stdout: .. code-block:: c++ - fmt::Print("Hello, {}!") << "world"; + fmt::print("Hello, {}!", "world"); Arguments can be accessed by position and arguments' indices can be repeated: .. code-block:: c++ - std::string s = str(fmt::format("{0}{1}{0}", "abra", "cad")); + std::string s = fmt::format("{0}{1}{0}", "abra", "cad"); // s == "abracadabra" C++ Format can be used as a safe portable replacement for ``itoa``: