Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions library/alloc/src/io/buffered/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ impl<W> IntoInnerError<W> {
/// obtain ownership of the underlying error.
///
/// # Example
///
/// ```
/// use std::io::{BufWriter, ErrorKind, Write};
///
Expand All @@ -154,6 +155,7 @@ impl<W> IntoInnerError<W> {
/// advanced error recovery.
///
/// # Example
///
/// ```
/// use std::io::{BufWriter, ErrorKind, Write};
///
Expand Down
3 changes: 2 additions & 1 deletion library/alloc/src/io/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
//! by adding a glob import to the top of I/O heavy modules:
//!
//! ```
//! # #![feature(alloc_io)]
//! # #![allow(unused_imports)]
//! use std::io::prelude::*;
//! use alloc::io::prelude::*;
//! ```

#[stable(feature = "rust1", since = "1.0.0")]
Expand Down
1 change: 1 addition & 0 deletions library/core/src/io/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,7 @@ impl fmt::Display for ErrorKind {
/// This is similar to `impl Display for Error`, but doesn't require first converting to Error.
///
/// # Examples
///
/// ```
/// use core::io::ErrorKind;
/// assert_eq!("entity not found", ErrorKind::NotFound.to_string());
Expand Down
3 changes: 2 additions & 1 deletion library/core/src/io/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
//! by adding a glob import to the top of I/O heavy modules:
//!
//! ```
//! # #![feature(core_io)]
//! # #![allow(unused_imports)]
//! use std::io::prelude::*;
//! use core::io::prelude::*;
//! ```

#[stable(feature = "rust1", since = "1.0.0")]
Expand Down
Loading