diff --git a/README.rst b/README.rst index fcb9555d..7a83d167 100644 --- a/README.rst +++ b/README.rst @@ -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 + + int main() { + fmt::print("Hello, world!\n"); + } -Format a string and use positional arguments: +Format a string using positional arguments: .. code:: c++