clarified std::fs truncate doc

Co-authored-by: nora <48135649+Noratrieb@users.noreply.github.com>
This commit is contained in:
yakiimoninja 2024-10-28 17:14:15 +00:00 committed by GitHub
parent a946721408
commit 5910a4f1bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 as true, it will truncate
/// If a file is successfully opened with this option set to 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.