Skip to content

Commit ee96280

Browse files
committed
Clarify description of Seek::stream_len
It can only describe the inner workings of the default implementation, other implementations might not be implemented using seeks at all.
1 parent 4e8ef65 commit ee96280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/io/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2017,7 +2017,7 @@ pub trait Seek {
20172017

20182018
/// Returns the length of this stream (in bytes).
20192019
///
2020-
/// This method is implemented using up to three seek operations. If this
2020+
/// The default implementation uses up to three seek operations. If this
20212021
/// method returns successfully, the seek position is unchanged (i.e. the
20222022
/// position before calling this method is the same as afterwards).
20232023
/// However, if this method returns an error, the seek position is

0 commit comments

Comments
 (0)