From 96282e186618691977192a6cace47f86d8a9aec5 Mon Sep 17 00:00:00 2001 From: Son Date: Mon, 20 Aug 2018 12:04:08 +1000 Subject: [PATCH] Add doc for impl From for Error --- src/libstd/io/error.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libstd/io/error.rs b/src/libstd/io/error.rs index 3e50988a68ba..a6b46fa20b10 100644 --- a/src/libstd/io/error.rs +++ b/src/libstd/io/error.rs @@ -212,6 +212,12 @@ impl ErrorKind { /// the heap (for normal construction via Error::new) is too costly. #[stable(feature = "io_error_from_errorkind", since = "1.14.0")] impl From for Error { + /// Converts a [`ErrorKind`] into a [`Error`]. + /// + /// This conversion allocates a new error with simple repr. + /// + /// [`ErrorKind`]: enum.ErrorKind.html + /// [`Error`]: struct.Error.html #[inline] fn from(kind: ErrorKind) -> Error { Error {