From 55fc20b7cbd198915d8ae9cfc4ade2b78e13bd2f Mon Sep 17 00:00:00 2001 From: tison Date: Fri, 5 Jul 2024 10:29:35 -0700 Subject: [PATCH] update comments Signed-off-by: tison --- std/src/path.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/std/src/path.rs b/std/src/path.rs index a6f6042eaefaf..8d565e26a1609 100644 --- a/std/src/path.rs +++ b/std/src/path.rs @@ -1524,9 +1524,6 @@ impl PathBuf { /// Returns `false` and does nothing if [`self.file_name`] is [`None`], /// returns `true` and updates the extension otherwise. /// - /// If [`self.extension`] is [`None`], the extension is added; otherwise - /// it is appended. - /// /// # Caveats /// /// The appended `extension` may contain dots and will be used in its entirety, @@ -2727,7 +2724,7 @@ impl Path { new_path } - /// Creates an owned [`PathBuf`] like `self` but with an extra extension. + /// Creates an owned [`PathBuf`] like `self` but with the extension added. /// /// See [`PathBuf::add_extension`] for more details. ///