Add printf example.

This commit is contained in:
Victor Zverovich 2014-07-03 09:40:34 -07:00
parent 4e260e8599
commit 270ed1cb92

View File

@ -54,7 +54,8 @@ This prints ``Hello, world!`` to stdout:
.. code-block:: c++ .. 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: Arguments can be accessed by position and arguments' indices can be repeated: