Skip to content

Commit d56ef5a

Browse files
clarified std::fs truncate doc
Co-authored-by: nora <[email protected]>
1 parent 191aa70 commit d56ef5a

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