Skip to content

Commit

Permalink
Rollup merge of rust-lang#58496 - nathan:doc-std-path-pathbuf-pop, r=…
Browse files Browse the repository at this point in the history
…frewsxcv

Fix documentation for std::path::PathBuf::pop

Closes rust-lang#58474.
  • Loading branch information
kennytm committed Feb 17, 2019
2 parents 17b07f9 + 4ad8770 commit 98f1865
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 98f1865

Please sign in to comment.