Skip to content

Commit 9e25984

Browse files
Add missing links in ReadDir docs
1 parent 645117f commit 9e25984

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libstd/fs.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,19 @@ pub struct Metadata(fs_imp::FileAttr);
106106
/// Iterator over the entries in a directory.
107107
///
108108
/// This iterator is returned from the [`read_dir`] function of this module and
109-
/// will yield instances of `io::Result<DirEntry>`. Through a [`DirEntry`]
109+
/// will yield instances of [`io::Result`]`<`[`DirEntry`]`>`. Through a [`DirEntry`]
110110
/// information like the entry's path and possibly other metadata can be
111111
/// learned.
112112
///
113-
/// [`read_dir`]: fn.read_dir.html
114-
/// [`DirEntry`]: struct.DirEntry.html
115-
///
116113
/// # Errors
117114
///
118-
/// This [`io::Result`] will be an `Err` if there's some sort of intermittent
115+
/// This [`io::Result`] will be an [`Err`] if there's some sort of intermittent
119116
/// IO error during iteration.
120117
///
118+
/// [`read_dir`]: fn.read_dir.html
119+
/// [`DirEntry`]: struct.DirEntry.html
121120
/// [`io::Result`]: ../io/type.Result.html
121+
/// [`Err`]: ../result/enum.Result.html#variant.Err
122122
#[stable(feature = "rust1", since = "1.0.0")]
123123
#[derive(Debug)]
124124
pub struct ReadDir(fs_imp::ReadDir);

0 commit comments

Comments
 (0)