From f7bf27dd7e7bac5f45c26c06e5be9af8562bf2dc Mon Sep 17 00:00:00 2001 From: rtobar Date: Tue, 8 Mar 2022 10:57:04 +0800 Subject: [PATCH] Document output_file default behavior correctly The documentation for output_file incorrectly says that opening an output file happens with `file::WRONLY | file::CREATE` by default, but this includes `file::TRUNC` is also included since 119f7dc3d. --- include/fmt/os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/os.h b/include/fmt/os.h index 1c1eb659..d7ba5f4c 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -460,7 +460,7 @@ class FMT_API ostream final : private detail::buffer { * ````: Flags passed to `open `_ - (``file::WRONLY | file::CREATE`` by default) + (``file::WRONLY | file::CREATE | file::TRUNC`` by default) * ``buffer_size=``: Output buffer size **Example**::