Skip to content

Commit 7b2dd1f

Browse files
committed
Docs: clarify return value of std::io::Seek::seek
1 parent f7b3cd3 commit 7b2dd1f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libstd/io/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1060,8 +1060,9 @@ pub trait Seek {
10601060
/// The behavior when seeking past the end of the stream is implementation
10611061
/// defined.
10621062
///
1063-
/// This method returns the new position within the stream if the seek
1064-
/// operation completed successfully.
1063+
/// If the seek operation completed successfully,
1064+
/// this method returns the new position from the start of the stream.
1065+
/// That position can be used later with `SeekFrom::Start`.
10651066
///
10661067
/// # Errors
10671068
///

0 commit comments

Comments
 (0)