Skip to content

Commit b3750aa

Browse files
committed
Remove main() from examples
1 parent 70f4269 commit b3750aa

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: src/libstd/io/error.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,9 @@ impl From<ErrorKind> for Error {
221221
/// ```
222222
/// use std::io::{Error, ErrorKind};
223223
///
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-
/// }
224+
/// let not_found = ErrorKind::NotFound;
225+
/// let error = Error::from(not_found);
226+
/// assert_eq!("entity not found", format!("{}", error));
229227
/// ```
230228
#[inline]
231229
fn from(kind: ErrorKind) -> Error {

0 commit comments

Comments
 (0)