about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authoryakiimoninja <80072600+yakiimoninja@users.noreply.github.com>2024-10-28 16:07:20 +0000
committerGitHub <noreply@github.com>2024-10-28 16:07:20 +0000
commita9467214084402e09c3363c4ec1afcc8caf32715 (patch)
treee579be81345c0b66789197971eaba6f96c07f273 /library/std/src
parent32b17d56eb02495f9865028e1f7271a3a48c0b9b (diff)
clarified doc for `std::fs::OpenOptions.truncate()`
Clarified what method does when `truncate` parameter is set to `true`.
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs
index 8a0d2a7f5cf..5229925ceed 100644
--- a/library/std/src/fs.rs
+++ b/library/std/src/fs.rs
@@ -1197,7 +1197,7 @@ impl OpenOptions {
 
     /// Sets the option for truncating a previous file.
     ///
-    /// If a file is successfully opened with this option set it will truncate
+    /// If a file is successfully opened with this option set as true, it will truncate
     /// the file to 0 length if it already exists.
     ///
     /// The file must be opened with write access for truncate to work.