We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4f83c4b + 0909ce3 commit 704c2eeCopy full SHA for 704c2ee
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