mirror of
https://github.com/shadps4-emu/ext-fmt.git
synced 2024-11-25 02:39:40 +00:00
Add printf example.
This commit is contained in:
parent
4e260e8599
commit
270ed1cb92
@ -54,7 +54,8 @@ This prints ``Hello, world!`` to stdout:
|
||||
|
||||
.. 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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user