Rollup merge of #54635 - neoeinstein:seek-docs, r=alexcrichton

Improve docs for std::io::Seek

Fixes #54562
This commit is contained in:
kennytm
2018-09-29 13:21:18 +08:00
+2 -2
View File
@@ -1204,8 +1204,8 @@ fn by_ref(&mut self) -> &mut Self where Self: Sized { self }
pub trait Seek {
/// Seek to an offset, in bytes, in a stream.
///
/// A seek beyond the end of a stream is allowed, but implementation
/// defined.
/// A seek beyond the end of a stream is allowed, but behavior is defined
/// by the implementation.
///
/// If the seek operation completed successfully,
/// this method returns the new position from the start of the stream.