Skip to content

Commit 191aa70

Browse files
authored
clarified doc for std::fs::OpenOptions.truncate()
Clarified what method does when `truncate` parameter is set to `true`.
1 parent 848fcd5 commit 191aa70

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 as 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)