We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acbefbb commit 55fc20bCopy full SHA for 55fc20b
std/src/path.rs
@@ -1524,9 +1524,6 @@ impl PathBuf {
1524
/// Returns `false` and does nothing if [`self.file_name`] is [`None`],
1525
/// returns `true` and updates the extension otherwise.
1526
///
1527
- /// If [`self.extension`] is [`None`], the extension is added; otherwise
1528
- /// it is appended.
1529
- ///
1530
/// # Caveats
1531
1532
/// The appended `extension` may contain dots and will be used in its entirety,
@@ -2727,7 +2724,7 @@ impl Path {
2727
2724
new_path
2728
2725
}
2729
2726
2730
- /// Creates an owned [`PathBuf`] like `self` but with an extra extension.
+ /// Creates an owned [`PathBuf`] like `self` but with the extension added.
2731
2732
/// See [`PathBuf::add_extension`] for more details.
2733
0 commit comments