Update readme.

This commit is contained in:
Victor Zverovich 2014-06-29 11:57:36 -07:00
parent 9d5905707a
commit 7955dc479c

View File

@ -54,13 +54,13 @@ This prints ``Hello, world!`` to stdout:
.. code-block:: c++ .. code-block:: c++
fmt::Print("Hello, {}!") << "world"; fmt::print("Hello, {}!", "world");
Arguments can be accessed by position and arguments' indices can be repeated: Arguments can be accessed by position and arguments' indices can be repeated:
.. code-block:: c++ .. 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" // s == "abracadabra"
C++ Format can be used as a safe portable replacement for ``itoa``: C++ Format can be used as a safe portable replacement for ``itoa``: