We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
file
file_name
1 parent a9ea33f commit 0909ce3Copy full SHA for 0909ce3
src/libstd/path.rs
@@ -1485,7 +1485,7 @@ impl Path {
1485
iter_after(self.components().rev(), child.as_ref().components().rev()).is_some()
1486
}
1487
1488
- /// Extracts the stem (non-extension) portion of `self.file()`.
+ /// Extracts the stem (non-extension) portion of `self.file_name()`.
1489
///
1490
/// The stem is:
1491
@@ -1508,7 +1508,7 @@ impl Path {
1508
self.file_name().map(split_file_at_dot).and_then(|(before, after)| before.or(after))
1509
1510
1511
- /// Extracts the extension of `self.file()`, if possible.
+ /// Extracts the extension of `self.file_name()`, if possible.
1512
1513
/// The extension is:
1514
0 commit comments