Skip to content

Commit

Permalink
Fix documentation for std::path::PathBuf::pop
Browse files Browse the repository at this point in the history
Closes #58474.
  • Loading branch information
nathan committed Feb 15, 2019
1 parent f47ec2a commit 4ad8770
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libstd/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1230,12 +1230,11 @@ impl PathBuf {

/// Truncates `self` to [`self.parent`].
///
/// Returns `false` and does nothing if [`self.file_name`] is [`None`].
/// Returns `false` and does nothing if [`self.parent`] is [`None`].
/// Otherwise, returns `true`.
///
/// [`None`]: ../../std/option/enum.Option.html#variant.None
/// [`self.parent`]: struct.PathBuf.html#method.parent
/// [`self.file_name`]: struct.PathBuf.html#method.file_name
///
/// # Examples
///
Expand Down

0 comments on commit 4ad8770

Please sign in to comment.