Skip to content

Commit 55fc20b

Browse files
committed
update comments
Signed-off-by: tison <wander4096@gmail.com>
1 parent acbefbb commit 55fc20b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

std/src/path.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1524,9 +1524,6 @@ impl PathBuf {
15241524
/// Returns `false` and does nothing if [`self.file_name`] is [`None`],
15251525
/// returns `true` and updates the extension otherwise.
15261526
///
1527-
/// If [`self.extension`] is [`None`], the extension is added; otherwise
1528-
/// it is appended.
1529-
///
15301527
/// # Caveats
15311528
///
15321529
/// The appended `extension` may contain dots and will be used in its entirety,
@@ -2727,7 +2724,7 @@ impl Path {
27272724
new_path
27282725
}
27292726

2730-
/// Creates an owned [`PathBuf`] like `self` but with an extra extension.
2727+
/// Creates an owned [`PathBuf`] like `self` but with the extension added.
27312728
///
27322729
/// See [`PathBuf::add_extension`] for more details.
27332730
///

0 commit comments

Comments
 (0)