libstdc++: Fix description of std::ios::trunc (PR 92886)
authorJonathan Wakely <jwakely@redhat.com>
Tue, 10 Dec 2019 17:35:42 +0000 (17:35 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 10 Dec 2019 17:35:42 +0000 (17:35 +0000)
PR libstdc++/92886
* include/bits/ios_base.h (std::ios_base::trunc): Fix comment.

From-SVN: r279175

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/ios_base.h

index 017160231c7d8f84c3d63da0a6a8a109522602b3..3f5d01eabf0432f3a9711c6e257794abc13e298f 100644 (file)
@@ -1,5 +1,8 @@
 2019-12-10  Jonathan Wakely  <jwakely@redhat.com>
 
+       PR libstdc++/92886
+       * include/bits/ios_base.h (std::ios_base::trunc): Fix comment.
+
        * include/std/complex (__cpp_lib_constexpr_complex): Define.
        * include/std/version (__cpp_lib_constexpr_complex): Likewise.
        * testsuite/26_numerics/complex/1.cc: New test.
index 06a3e0870f3e52ad4e7d22d09523fe74f74c5ae9..be908b3ffd2770e43bbb81da973e908d458b3066 100644 (file)
@@ -445,7 +445,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     /// Open for output.  Default for @c ofstream and fstream.
     static const openmode out =                _S_out;
 
-    /// Open for input.  Default for @c ofstream.
+    /// Truncate an existing stream when opening.  Default for @c ofstream.
     static const openmode trunc =      _S_trunc;
 
     // 27.4.2.1.5  Type ios_base::seekdir