diff options
| author | kennytm <kennytm@gmail.com> | 2019-02-16 23:46:10 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2019-02-17 14:52:24 +0800 |
| commit | 98f1865718048b4e4d493cc8ec34363288235ee5 (patch) | |
| tree | a8b717b942b2d7b894fcf8adacdae9d3327e17c4 /src/libstd | |
| parent | 17b07f99e8db546febdb7c1019f40fccb7a90c67 (diff) | |
| parent | 4ad8770b26ea9804da15149284403c85362e316f (diff) | |
| download | rust-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.rs | 3 |
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 /// |
