libstd: Path docs: file
is now file_name
This commit is contained in:
parent
a9ea33fa30
commit
0909ce382f
1 changed files with 2 additions and 2 deletions
|
@ -1485,7 +1485,7 @@ impl Path {
|
||||||
iter_after(self.components().rev(), child.as_ref().components().rev()).is_some()
|
iter_after(self.components().rev(), child.as_ref().components().rev()).is_some()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Extracts the stem (non-extension) portion of `self.file()`.
|
/// Extracts the stem (non-extension) portion of `self.file_name()`.
|
||||||
///
|
///
|
||||||
/// The stem is:
|
/// The stem is:
|
||||||
///
|
///
|
||||||
|
@ -1508,7 +1508,7 @@ impl Path {
|
||||||
self.file_name().map(split_file_at_dot).and_then(|(before, after)| before.or(after))
|
self.file_name().map(split_file_at_dot).and_then(|(before, after)| before.or(after))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Extracts the extension of `self.file()`, if possible.
|
/// Extracts the extension of `self.file_name()`, if possible.
|
||||||
///
|
///
|
||||||
/// The extension is:
|
/// The extension is:
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue