about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-09-19 18:10:38 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2017-09-19 18:10:38 +0200
commitff457f012aef26f82c42c73783d7d3810d04d624 (patch)
tree8e3828fc54cacf36a6ffde79a1654e85e7f0459f
parent325ba23d5525ecdd555f19c7f527bce913dfd756 (diff)
downloadrust-ff457f012aef26f82c42c73783d7d3810d04d624.tar.gz
rust-ff457f012aef26f82c42c73783d7d3810d04d624.zip
Add some missing links in io docs
-rw-r--r--src/libstd/io/util.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libstd/io/util.rs b/src/libstd/io/util.rs
index 88f4214296d..e20f249d3ea 100644
--- a/src/libstd/io/util.rs
+++ b/src/libstd/io/util.rs
@@ -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
 ///