about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2019-02-16 23:46:10 +0800
committerkennytm <kennytm@gmail.com>2019-02-17 14:52:24 +0800
commit98f1865718048b4e4d493cc8ec34363288235ee5 (patch)
treea8b717b942b2d7b894fcf8adacdae9d3327e17c4 /src/libstd
parent17b07f99e8db546febdb7c1019f40fccb7a90c67 (diff)
parent4ad8770b26ea9804da15149284403c85362e316f (diff)
downloadrust-98f1865718048b4e4d493cc8ec34363288235ee5.tar.gz
rust-98f1865718048b4e4d493cc8ec34363288235ee5.zip
Rollup merge of #58496 - nathan:doc-std-path-pathbuf-pop, r=frewsxcv
Fix documentation for std::path::PathBuf::pop

Closes #58474.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/path.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 0f1d627fa1e..0a9796d1a9c 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -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
     ///