File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1670,6 +1670,7 @@ impl DirEntry {
16701670 /// }
16711671 /// ```
16721672 #[ must_use]
1673+ #[ doc( alias = "basename" ) ]
16731674 #[ stable( feature = "dir_entry_ext" , since = "1.1.0" ) ]
16741675 pub fn file_name ( & self ) -> OsString {
16751676 self . 0 . file_name ( )
Original file line number Diff line number Diff line change @@ -2158,6 +2158,7 @@ impl Path {
21582158 /// assert_eq!(grand_parent.parent(), None);
21592159 /// ```
21602160 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2161+ #[ doc( alias = "dirname" ) ]
21612162 #[ must_use]
21622163 pub fn parent ( & self ) -> Option < & Path > {
21632164 let mut comps = self . components ( ) ;
@@ -2225,6 +2226,7 @@ impl Path {
22252226 /// assert_eq!(None, Path::new("/").file_name());
22262227 /// ```
22272228 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2229+ #[ doc( alias = "basename" ) ]
22282230 #[ must_use]
22292231 pub fn file_name ( & self ) -> Option < & OsStr > {
22302232 self . components ( ) . next_back ( ) . and_then ( |p| match p {
You can’t perform that action at this time.
0 commit comments