Skip to content

Commit 74e0e45

Browse files
committed
io::Seek: Mention that seeking can fail due to buffer flush fail
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
1 parent 2fb1dee commit 74e0e45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/std/src/io/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,6 +1663,8 @@ pub trait Seek {
16631663
///
16641664
/// # Errors
16651665
///
1666+
/// Seeking can fail, for example becaue it might involve flushing a buffer.
1667+
///
16661668
/// Seeking to a negative offset is considered an error.
16671669
#[stable(feature = "rust1", since = "1.0.0")]
16681670
fn seek(&mut self, pos: SeekFrom) -> Result<u64>;

0 commit comments

Comments
 (0)