Skip to content

Commit c8ebd72

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 5a76ab7 commit c8ebd72

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
@@ -2014,7 +2014,7 @@ pub trait Seek {
20142014

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

0 commit comments

Comments
 (0)