diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-20 05:30:34 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-20 12:43:11 +0530 |
| commit | 17c1a46a7d113c81a26eed5be8942be94b78eff2 (patch) | |
| tree | 88718d0e192282f0f92a90de3f988e3a1a5c3cdf /src/libstd | |
| parent | e2d32b74ecedc3f603def4d5130c0c300edce7d1 (diff) | |
| parent | 3e3408de0f73f7df7c8a626c64ff4d704f08353d (diff) | |
| download | rust-17c1a46a7d113c81a26eed5be8942be94b78eff2.tar.gz rust-17c1a46a7d113c81a26eed5be8942be94b78eff2.zip | |
Rollup merge of #23529 - steveklabnik:gh23426, r=alexcrichton
Fixes #23426
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/fs/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstd/fs/mod.rs b/src/libstd/fs/mod.rs index 80336a0da87..c56852cb18a 100644 --- a/src/libstd/fs/mod.rs +++ b/src/libstd/fs/mod.rs @@ -73,6 +73,11 @@ pub struct Metadata(fs_imp::FileAttr); /// will yield instances of `io::Result<DirEntry>`. Through a `DirEntry` /// information like the entry's path and possibly other metadata can be /// learned. +/// +/// # Failure +/// +/// This `io::Result` will be an `Err` if there's some sort of intermittent +/// IO error during iteration. #[stable(feature = "rust1", since = "1.0.0")] pub struct ReadDir(fs_imp::ReadDir); |
