Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4b1e28b

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 fde8a8d commit 4b1e28b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎library/std/src/io/mod.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2028,7 +2028,7 @@ pub trait Seek {
20282028

20292029
/// Returns the length of this stream (in bytes).
20302030
///
2031-
/// This method is implemented using up to three seek operations. If this
2031+
/// The default implementation uses up to three seek operations. If this
20322032
/// method returns successfully, the seek position is unchanged (i.e. the
20332033
/// position before calling this method is the same as afterwards).
20342034
/// However, if this method returns an error, the seek position is

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /