Skip to content

Commit

Permalink
Unrolled build for rust-lang#132270
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#132270 - yakiimoninja:fs-truncate-docs, r=Noratrieb

clarified doc for `std::fs::OpenOptions.truncate()`

Clarified what method does when `std::fs::OpenOptions.truncate()` parameter is set to `true`.
  • Loading branch information
rust-timer authored Oct 29, 2024
2 parents c8a8c82 + 5910a4f commit a4d5029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ impl OpenOptions {

/// Sets the option for truncating a previous file.
///
/// If a file is successfully opened with this option set 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.
Expand Down

0 comments on commit a4d5029

Please sign in to comment.