From 270ed1cb927bbd27efd8c8bddec52e50e97b5211 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 3 Jul 2014 09:40:34 -0700 Subject: [PATCH] Add printf example. --- README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 396cc71e..06089da5 100644 --- a/README.rst +++ b/README.rst @@ -54,7 +54,8 @@ This prints ``Hello, world!`` to stdout: .. code-block:: c++ - fmt::print("Hello, {}!", "world"); + fmt::print("Hello, {}!", "world"); // uses Python-like format + fmt::printf("Hello, %s!", "world"); // uses printf format Arguments can be accessed by position and arguments' indices can be repeated: