about summary refs log tree commit diff
path: root/library/std/src/io/mod.rs
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2025-01-09 10:31:03 +0100
committerTobias Bucher <tobiasbucher5991@gmail.com>2025-06-05 16:27:28 +0200
commit4b1e28b21f78491d4ae187a52ebd5436edef6281 (patch)
tree3a7cb8f7b6da75425a65276bf040e2a0a149757c /library/std/src/io/mod.rs
parentfde8a8d518e3bd9124bfe4028e3c45f7dcf34593 (diff)
downloadrust-4b1e28b21f78491d4ae187a52ebd5436edef6281.tar.gz
rust-4b1e28b21f78491d4ae187a52ebd5436edef6281.zip
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.
Diffstat (limited to 'library/std/src/io/mod.rs')
-rw-r--r--library/std/src/io/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs
index 859f189a6c8..20c82b64bcc 100644
--- a/library/std/src/io/mod.rs
+++ b/library/std/src/io/mod.rs
@@ -2028,7 +2028,7 @@ pub trait Seek {
 
     /// Returns the length of this stream (in bytes).
     ///
-    /// This method is implemented using up to three seek operations. If this
+    /// The default implementation uses up to three seek operations. If this
     /// method returns successfully, the seek position is unchanged (i.e. the
     /// position before calling this method is the same as afterwards).
     /// However, if this method returns an error, the seek position is