Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Jul 5, 2024
1 parent acbefbb commit 55fc20b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions std/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.
///
Expand Down

0 comments on commit 55fc20b

Please sign in to comment.