We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70f4269 commit b3750aaCopy full SHA for b3750aa
src/libstd/io/error.rs
@@ -221,11 +221,9 @@ impl From<ErrorKind> for Error {
221
/// ```
222
/// use std::io::{Error, ErrorKind};
223
///
224
- /// fn main() {
225
- /// let not_found = ErrorKind::NotFound;
226
- /// let error = Error::from(not_found);
227
- /// assert_eq!("entity not found", format!("{}", error));
228
- /// }
+ /// let not_found = ErrorKind::NotFound;
+ /// let error = Error::from(not_found);
+ /// assert_eq!("entity not found", format!("{}", error));
229
230
#[inline]
231
fn from(kind: ErrorKind) -> Error {
0 commit comments