mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-27 06:35:37 +00:00
Update README.rst
This commit is contained in:
parent
5aa5c98738
commit
0b3a83f7f4
@ -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++
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user