minor documentation corrections

In the Format API section, it says fmt:print writes to a file, but it
writes to a stream as referenced from fopen(3), "stream open
functions". Also in the Safety section a typo; tim should be time.
This commit is contained in:
Mathew Cucuzella 2018-10-08 00:56:10 -07:00 committed by Victor Zverovich
parent f27defc639
commit 61f81a0719

View File

@ -40,7 +40,7 @@ The ``fmt::format`` function returns a string "The answer is 42.". You can use
format_to(out, "For a moment, {} happened.", "nothing");
out.data(); // returns a pointer to the formatted data
The ``fmt::print`` function performs formatting and writes the result to a file:
The ``fmt::print`` function performs formatting and writes the result to a stream:
.. code:: c++
@ -94,7 +94,7 @@ Safety
The library is fully type safe, automatic memory management prevents buffer
overflow, errors in format strings are reported using exceptions or at compile
tim. For example, the code
time. For example, the code
.. code:: c++