diff options
| author | Nathan <nathan@users.noreply.github.com> | 2019-02-15 12:19:15 -0500 |
|---|---|---|
| committer | Nathan <nathan@users.noreply.github.com> | 2019-02-15 12:20:46 -0500 |
| commit | 4ad8770b26ea9804da15149284403c85362e316f (patch) | |
| tree | f31d6d36644bf28373f5fdfceeeb2455436c94f5 | |
| parent | f47ec2ad5b6887b3d400aee49e2294bd27733d18 (diff) | |
| download | rust-4ad8770b26ea9804da15149284403c85362e316f.tar.gz rust-4ad8770b26ea9804da15149284403c85362e316f.zip | |
Fix documentation for std::path::PathBuf::pop
Closes #58474.
| -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 /// |
