about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2021-06-18 19:38:10 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2021-06-18 19:40:31 +0100
commitc8bddf3bd1e94d134d6fc58871eb107c43b9529b (patch)
treec99ec60788eec4015a4c837dd18aa717c2511669 /library/std/src
parent622a45d1b89f77d8c315c58e104069caa8f83a5d (diff)
downloadrust-c8bddf3bd1e94d134d6fc58871eb107c43b9529b.tar.gz
rust-c8bddf3bd1e94d134d6fc58871eb107c43b9529b.zip
ErrorKind::NotSeekable: Fix reference to File::open()
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/io/error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/io/error.rs b/library/std/src/io/error.rs
index f07e469f529..b59d7592044 100644
--- a/library/std/src/io/error.rs
+++ b/library/std/src/io/error.rs
@@ -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.