clarified std::fs truncate doc · qinheping/verify-rust-std@d56ef5a (original) (raw)

Original file line number Diff line number Diff line change
@@ -1197,7 +1197,7 @@ impl OpenOptions {
1197 1197
1198 1198 /// Sets the option for truncating a previous file.
1199 1199 ///
1200 - /// If a file is successfully opened with this option set as true, it will truncate
1200 + /// If a file is successfully opened with this option set to true, it will truncate
1201 1201 /// the file to 0 length if it already exists.
1202 1202 ///
1203 1203 /// The file must be opened with write access for truncate to work.