clarified doc for std::fs::OpenOptions.truncate()
Clarified what method does when `truncate` parameter is set to `true`.
This commit is contained in:
parent
32b17d56eb
commit
a946721408
@ -1197,7 +1197,7 @@ pub fn append(&mut self, append: bool) -> &mut Self {
|
||||
|
||||
/// 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.
|
||||
|
Loading…
Reference in New Issue
Block a user