summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2018-08-21 19:59:33 -0400
committerAndrew Gallant <jamslam@gmail.com>2018-08-21 23:05:52 -0400
commit95a4f15916699a1188f7b27c7eb71f850f404098 (patch)
treea0b4ec2a268978a92c038a3e0f0e6f78f9b7730a
parent0eef05142a03cbe393e8e346d401991d45878a81 (diff)
ignore: clarify docs for DirEntry::error
Fixes #953
-rw-r--r--ignore/src/walk.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ignore/src/walk.rs b/ignore/src/walk.rs
index 09bac172..35b00066 100644
--- a/ignore/src/walk.rs
+++ b/ignore/src/walk.rs
@@ -84,7 +84,8 @@ impl DirEntry {
/// Returns an error, if one exists, associated with processing this entry.
///
/// An example of an error is one that occurred while parsing an ignore
- /// file.
+ /// file. Errors related to traversing a directory tree itself are reported
+ /// as part of yielding the directory entry, and not with this method.
pub fn error(&self) -> Option<&Error> {
self.err.as_ref()
}