Update README.rst

This commit is contained in:
Victor Zverovich 2020-06-20 05:37:58 -07:00 committed by GitHub
parent 5aa5c98738
commit 0b3a83f7f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,10 +66,13 @@ Print ``Hello, world!`` to ``stdout``:
.. code:: c++
fmt::print("Hello, {}!", "world"); // Python-like format string syntax
fmt::printf("Hello, %s!", "world"); // printf format string syntax
#include <fmt/core.h>
int main() {
fmt::print("Hello, world!\n");
}
Format a string and use positional arguments:
Format a string using positional arguments:
.. code:: c++