clarified std::fs truncate doc · qinheping/verify-rust-std@d56ef5a (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit d56ef5a
and
authored
clarified std::fs truncate doc
Co-authored-by: nora 48135649+Noratrieb@users.noreply.github.com
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 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. |