From 61f81a071966fac324a7c10ea2310aea1371ac7a Mon Sep 17 00:00:00 2001 From: Mathew Cucuzella Date: Mon, 8 Oct 2018 00:56:10 -0700 Subject: [PATCH] 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. --- doc/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/index.rst b/doc/index.rst index 17d6b4bb..a8dc05e5 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -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++