about summary refs log tree commit diff
path: root/src/libstd/fs.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-08-10 23:01:59 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2017-08-10 23:01:59 +0200
commit9e25984ee1bfb797ad1c889b4296277045389d8b (patch)
tree6ea4432d2ced4746ec0eca36762361959ff2976a /src/libstd/fs.rs
parent645117fd96831ddcda35e4d6d2bdba9935c58e53 (diff)
downloadrust-9e25984ee1bfb797ad1c889b4296277045389d8b.tar.gz
rust-9e25984ee1bfb797ad1c889b4296277045389d8b.zip
Add missing links in ReadDir docs
Diffstat (limited to 'src/libstd/fs.rs')
-rw-r--r--src/libstd/fs.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs
index adbfcc366af..062186ef708 100644
--- a/src/libstd/fs.rs
+++ b/src/libstd/fs.rs
@@ -106,19 +106,19 @@ pub struct Metadata(fs_imp::FileAttr);
 /// Iterator over the entries in a directory.
 ///
 /// This iterator is returned from the [`read_dir`] function of this module and
-/// will yield instances of `io::Result<DirEntry>`. Through a [`DirEntry`]
+/// will yield instances of [`io::Result`]`<`[`DirEntry`]`>`. Through a [`DirEntry`]
 /// information like the entry's path and possibly other metadata can be
 /// learned.
 ///
-/// [`read_dir`]: fn.read_dir.html
-/// [`DirEntry`]: struct.DirEntry.html
-///
 /// # Errors
 ///
-/// This [`io::Result`] will be an `Err` if there's some sort of intermittent
+/// This [`io::Result`] will be an [`Err`] if there's some sort of intermittent
 /// IO error during iteration.
 ///
+/// [`read_dir`]: fn.read_dir.html
+/// [`DirEntry`]: struct.DirEntry.html
 /// [`io::Result`]: ../io/type.Result.html
+/// [`Err`]: ../result/enum.Result.html#variant.Err
 #[stable(feature = "rust1", since = "1.0.0")]
 #[derive(Debug)]
 pub struct ReadDir(fs_imp::ReadDir);