We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1b1223d + d1762d7 commit ccde95fCopy full SHA for ccde95f
library/std/src/path.rs
@@ -2158,6 +2158,7 @@ impl Path {
2158
/// assert_eq!(grand_parent.parent(), None);
2159
/// ```
2160
#[stable(feature = "rust1", since = "1.0.0")]
2161
+ #[doc(alias = "dirname")]
2162
#[must_use]
2163
pub fn parent(&self) -> Option<&Path> {
2164
let mut comps = self.components();
@@ -2225,6 +2226,7 @@ impl Path {
2225
2226
/// assert_eq!(None, Path::new("/").file_name());
2227
2228
2229
+ #[doc(alias = "basename")]
2230
2231
pub fn file_name(&self) -> Option<&OsStr> {
2232
self.components().next_back().and_then(|p| match p {
0 commit comments