Skip to content

Commit

Permalink
Rollup merge of rust-lang#44703 - GuillaumeGomez:missing-io-links, r=…
Browse files Browse the repository at this point in the history
…QuietMisdreavus

Add some missing links in io docs

r? @rust-lang/docs
  • Loading branch information
GuillaumeGomez authored Sep 19, 2017
2 parents bb20692 + ff457f0 commit bfed2dc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/libstd/io/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,18 @@ pub fn copy<R: ?Sized, W: ?Sized>(reader: &mut R, writer: &mut W) -> io::Result<

/// A reader which is always at EOF.
///
/// This struct is generally created by calling [`empty`][empty]. Please see
/// the documentation of `empty()` for more details.
/// This struct is generally created by calling [`empty`]. Please see
/// the documentation of [`empty()`][`empty`] for more details.
///
/// [empty]: fn.empty.html
/// [`empty`]: fn.empty.html
#[stable(feature = "rust1", since = "1.0.0")]
pub struct Empty { _priv: () }

/// Constructs a new handle to an empty reader.
///
/// All reads from the returned reader will return `Ok(0)`.
/// All reads from the returned reader will return [`Ok`]`(0)`.
///
/// [`Ok`]: ../result/enum.Result.html#variant.Ok
///
/// # Examples
///
Expand Down

0 comments on commit bfed2dc

Please sign in to comment.