Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55fc20b

Browse files
committed
update comments
Signed-off-by: tison <wander4096@gmail.com>
1 parentacbefbb commit55fc20b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎std/src/path.rs‎

Lines changed: 1 addition & 4 deletions
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 withan extraextension.
2727+
/// Creates an owned [`PathBuf`] like `self` but withtheextension added.
27312728
///
27322729
/// See [`PathBuf::add_extension`] for more details.
27332730
///

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp