]> git.lizzy.rs Git - rust.git/commitdiff
ErrorKind::NotSeekable: Fix reference to File::open()
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 18 Jun 2021 18:38:10 +0000 (19:38 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 18 Jun 2021 18:40:31 +0000 (19:40 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
library/std/src/io/error.rs

index f07e469f52932f4f579f6023dc3ac4ee876039ef..b59d75920445ff2403789fdc41045e7868d742fa 100644 (file)
@@ -206,7 +206,7 @@ pub enum ErrorKind {
     /// Seek on unseekable file
     ///
     /// Seeking was attempted on an open file handle which is not suitable for seeking - for
-    /// example, on Unix, a named pipe opened with `File::new`.
+    /// example, on Unix, a named pipe opened with `File::open`.
     #[unstable(feature = "io_error_more", issue = "86442")]
     NotSeekable,
     /// Filesystem quota was exceeded.