clarified doc for std::fs::OpenOptions.truncate() · qinheping/verify-rust-std@191aa70 (original) (raw)
Navigation Menu
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 191aa70
clarified doc for std::fs::OpenOptions.truncate()
Clarified what method does when `truncate` parameter is set to `true`.
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 1 addition & 1 deletion
| 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 it will truncate | |
| 1200 | + /// If a file is successfully opened with this option set as 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. |