We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
std::fs::OpenOptions.truncate()
1 parent 848fcd5 commit 191aa70Copy full SHA for 191aa70
std/src/fs.rs
@@ -1197,7 +1197,7 @@ impl OpenOptions {
1197
1198
/// Sets the option for truncating a previous file.
1199
///
1200
- /// 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
1201
/// the file to 0 length if it already exists.
1202
1203
/// The file must be opened with write access for truncate to work.
0 commit comments