mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
DirEntry::file_name: improve explanation
This commit is contained in:
parent
04075b3202
commit
6f61f6ba11
@ -1755,8 +1755,14 @@ impl DirEntry {
|
||||
self.0.file_type().map(FileType)
|
||||
}
|
||||
|
||||
/// Returns the bare file name of this directory entry without any other
|
||||
/// leading path component.
|
||||
/// Returns the file name of this directory entry without any
|
||||
/// leading path component(s).
|
||||
///
|
||||
/// As an example,
|
||||
/// the output of the function will result in "foo" for all the following paths:
|
||||
/// - "./foo"
|
||||
/// - "/the/foo"
|
||||
/// - "../../foo"
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user