From 33d43c1e3468c8245f5f096d06760dac318399f7 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Wed, 9 Dec 2015 01:10:28 +0200 Subject: doc: these are just renames, so avoid duplication --- src/libstd/io/error.rs | 7 +------ src/libstd/io/mod.rs | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/io/error.rs b/src/libstd/io/error.rs index 4af9596d6d0..1ff8f572a7f 100644 --- a/src/libstd/io/error.rs +++ b/src/libstd/io/error.rs @@ -150,12 +150,7 @@ pub enum ErrorKind { #[stable(feature = "rust1", since = "1.0.0")] Other, - /// An error returned when an operation could not be completed because an - /// "end of file" was reached prematurely. - /// - /// This typically means that an operation could only succeed if it read a - /// particular number of bytes but only a smaller number of bytes could be - /// read. + #[allow(missing_docs)] #[unstable(feature = "read_exact_old", reason = "recently added", issue = "0")] #[rustc_deprecated(since = "1.6.0", reason = "renamed to UnexpectedEof")] diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index e957297bf62..efe40cf07c1 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -576,7 +576,7 @@ pub trait Read { /// will continue. /// /// If this function encounters an "end of file" before completely filling - /// the buffer, it returns an error of the kind `ErrorKind::UnexpectedEOF`. + /// the buffer, it returns an error of the kind `ErrorKind::UnexpectedEof`. /// The contents of `buf` are unspecified in this case. /// /// If any other read error is encountered then this function immediately -- cgit 1.4.1-3-g733a5