about summary refs log tree commit diff
path: root/library/std/src/path.rs
diff options
context:
space:
mode:
authortison <wander4096@gmail.com>2024-07-05 10:29:35 -0700
committertison <wander4096@gmail.com>2024-07-05 10:29:35 -0700
commita0f4114ba939f8df47d2c56ffd3dd19ed6e094aa (patch)
treec718bb8e70c82c4c5bb19c102e908b5ef36b99f8 /library/std/src/path.rs
parent57e76d45960770e45e20a76019c96643b7ef0845 (diff)
downloadrust-a0f4114ba939f8df47d2c56ffd3dd19ed6e094aa.tar.gz
rust-a0f4114ba939f8df47d2c56ffd3dd19ed6e094aa.zip
update comments
Signed-off-by: tison <wander4096@gmail.com>
Diffstat (limited to 'library/std/src/path.rs')
-rw-r--r--library/std/src/path.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs
index a6f6042eaef..8d565e26a16 100644
--- a/library/std/src/path.rs
+++ b/library/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.
     ///