Skip to content

libstd: Path docs: file is now file_name #25465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 17, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/libstd/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ impl Path {
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:
///
Expand All @@ -1508,7 +1508,7 @@ impl Path {
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:
///
Expand Down