Rollup merge of #58496 - nathan:doc-std-path-pathbuf-pop, r=frewsxcv

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

Closes #58474.
This commit is contained in:
kennytm 2019-02-16 23:46:10 +08:00
commit 98f1865718
No known key found for this signature in database
GPG Key ID: FEF6C8051D0E013C

View File

@ -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
///