Unverified Commit 0b3a83f7 authored by Victor Zverovich's avatar Victor Zverovich Committed by GitHub

Update README.rst

parent 5aa5c987
...@@ -66,10 +66,13 @@ Print ``Hello, world!`` to ``stdout``: ...@@ -66,10 +66,13 @@ Print ``Hello, world!`` to ``stdout``:
.. code:: c++ .. code:: c++
fmt::print("Hello, {}!", "world"); // Python-like format string syntax #include <fmt/core.h>
fmt::printf("Hello, %s!", "world"); // printf format string syntax
Format a string and use positional arguments: int main() {
fmt::print("Hello, world!\n");
}
Format a string using positional arguments:
.. code:: c++ .. code:: c++
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment