File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1960,7 +1960,9 @@ pub trait Seek {
19601960
19611961 /// Seeks relative to the current position.
19621962 ///
1963- /// This is equivalent to `self.seek(SeekFrom::Current(offset))`.
1963+ /// This is equivalent to `self.seek(SeekFrom::Current(offset))` but
1964+ /// doesn't return the new position which can allow some implementations
1965+ /// such as [`BufReader`] to perform more efficient seeks.
19641966 ///
19651967 /// # Example
19661968 ///
@@ -1978,6 +1980,8 @@ pub trait Seek {
19781980 /// Ok(())
19791981 /// }
19801982 /// ```
1983+ ///
1984+ /// [`BufReader`]: crate::io::BufReader
19811985 #[ unstable( feature = "seek_seek_relative" , issue = "117374" ) ]
19821986 fn seek_relative ( & mut self , offset : i64 ) -> Result < ( ) > {
19831987 self . seek ( SeekFrom :: Current ( offset) ) ?;
You can’t perform that action at this time.
0 commit comments