mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-11 17:37:41 +00:00
Clarify interfaction between File::set_len and file cursor
This commit is contained in:
parent
063deba92e
commit
cfad25ee8f
@ -453,6 +453,10 @@ impl File {
|
|||||||
/// will be extended to `size` and have all of the intermediate data filled
|
/// will be extended to `size` and have all of the intermediate data filled
|
||||||
/// in with 0s.
|
/// in with 0s.
|
||||||
///
|
///
|
||||||
|
/// The file's cursor isn't changed. In particular, if the cursor was at the
|
||||||
|
/// end and the file is shrunk using this operation, the cursor will now be
|
||||||
|
/// past the end.
|
||||||
|
///
|
||||||
/// # Errors
|
/// # Errors
|
||||||
///
|
///
|
||||||
/// This function will return an error if the file is not opened for writing.
|
/// This function will return an error if the file is not opened for writing.
|
||||||
|
Loading…
Reference in New Issue
Block a user