Skip to content

Commit 6495896

Browse files
Rollup merge of rust-lang#132270 - yakiimoninja:fs-truncate-docs, r=Noratrieb
clarified doc for `std::fs::OpenOptions.truncate()` Clarified what method does when `std::fs::OpenOptions.truncate()` parameter is set to `true`.
2 parents 057f9e9 + d56ef5a commit 6495896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ impl OpenOptions {
11971197

11981198
/// Sets the option for truncating a previous file.
11991199
///
1200-
/// If a file is successfully opened with this option set it will truncate
1200+
/// If a file is successfully opened with this option set to true, it will truncate
12011201
/// the file to 0 length if it already exists.
12021202
///
12031203
/// The file must be opened with write access for truncate to work.

0 commit comments

Comments
 (0)