We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 063deba commit cfad25eCopy full SHA for cfad25e
src/libstd/fs.rs
@@ -453,6 +453,10 @@ impl File {
453
/// will be extended to `size` and have all of the intermediate data filled
454
/// in with 0s.
455
///
456
+ /// The file's cursor isn't changed. In particular, if the cursor was at the
457
+ /// end and the file is shrunk using this operation, the cursor will now be
458
+ /// past the end.
459
+ ///
460
/// # Errors
461
462
/// This function will return an error if the file is not opened for writing.
0 commit comments