From 7b2dd1fb281dab2543f619a52bc8c217d3ed7700 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Sun, 2 Aug 2015 14:15:00 +0200 Subject: [PATCH] Docs: clarify return value of std::io::Seek::seek --- src/libstd/io/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index f811aa1be4e..3d746aa450a 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -1060,8 +1060,9 @@ pub trait Seek { /// The behavior when seeking past the end of the stream is implementation /// defined. /// - /// This method returns the new position within the stream if the seek - /// operation completed successfully. + /// If the seek operation completed successfully, + /// this method returns the new position from the start of the stream. + /// That position can be used later with `SeekFrom::Start`. /// /// # Errors /// -- 2.44.0