From dcfbe4a77a0dc030499397d05291f72e94e97842 Mon Sep 17 00:00:00 2001 From: rtobar Date: Wed, 9 Mar 2022 02:02:22 +0800 Subject: [PATCH] Document output_file default behavior correctly (#2803) 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**::