Skip to content

Navigation Menu

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

Appearance settings

Commit a529985

Browse filesBrowse 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 75195b5 commit a529985
Copy full SHA for a529985

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.