Skip to content

Commit 704c2ee

Browse files
committed
Auto merge of #25465 - Ryman:patch-2, r=alexcrichton
r? @steveklabnik
2 parents 4f83c4b + 0909ce3 commit 704c2ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/libstd/path.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ impl Path {
14851485
iter_after(self.components().rev(), child.as_ref().components().rev()).is_some()
14861486
}
14871487

1488-
/// Extracts the stem (non-extension) portion of `self.file()`.
1488+
/// Extracts the stem (non-extension) portion of `self.file_name()`.
14891489
///
14901490
/// The stem is:
14911491
///
@@ -1508,7 +1508,7 @@ impl Path {
15081508
self.file_name().map(split_file_at_dot).and_then(|(before, after)| before.or(after))
15091509
}
15101510

1511-
/// Extracts the extension of `self.file()`, if possible.
1511+
/// Extracts the extension of `self.file_name()`, if possible.
15121512
///
15131513
/// The extension is:
15141514
///

0 commit comments

Comments
 (0)