From 4ad8770b26ea9804da15149284403c85362e316f Mon Sep 17 00:00:00 2001 From: Nathan Date: Fri, 15 Feb 2019 12:19:15 -0500 Subject: [PATCH] Fix documentation for std::path::PathBuf::pop Closes #58474. --- src/libstd/path.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 0f1d627fa1e8..0a9796d1a9c2 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 ///