We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04075b3 commit 6f61f6bCopy full SHA for 6f61f6b
library/std/src/fs.rs
@@ -1755,8 +1755,14 @@ impl DirEntry {
1755
self.0.file_type().map(FileType)
1756
}
1757
1758
- /// Returns the bare file name of this directory entry without any other
1759
- /// leading path component.
+ /// Returns the file name of this directory entry without any
+ /// leading path component(s).
1760
+ ///
1761
+ /// As an example,
1762
+ /// the output of the function will result in "foo" for all the following paths:
1763
+ /// - "./foo"
1764
+ /// - "/the/foo"
1765
+ /// - "../../foo"
1766
///
1767
/// # Examples
1768
0 commit comments