File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1670,6 +1670,7 @@ impl DirEntry {
1670
1670
/// }
1671
1671
/// ```
1672
1672
#[ must_use]
1673
+ #[ doc( alias = "basename" ) ]
1673
1674
#[ stable( feature = "dir_entry_ext" , since = "1.1.0" ) ]
1674
1675
pub fn file_name ( & self ) -> OsString {
1675
1676
self . 0 . file_name ( )
Original file line number Diff line number Diff line change @@ -2158,6 +2158,7 @@ impl Path {
2158
2158
/// assert_eq!(grand_parent.parent(), None);
2159
2159
/// ```
2160
2160
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2161
+ #[ doc( alias = "dirname" ) ]
2161
2162
#[ must_use]
2162
2163
pub fn parent ( & self ) -> Option < & Path > {
2163
2164
let mut comps = self . components ( ) ;
@@ -2225,6 +2226,7 @@ impl Path {
2225
2226
/// assert_eq!(None, Path::new("/").file_name());
2226
2227
/// ```
2227
2228
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2229
+ #[ doc( alias = "basename" ) ]
2228
2230
#[ must_use]
2229
2231
pub fn file_name ( & self ) -> Option < & OsStr > {
2230
2232
self . components ( ) . next_back ( ) . and_then ( |p| match p {
You can’t perform that action at this time.
0 commit comments