Skip to content

Commit 8758c15

Browse files
committed
Auto merge of rust-lang#17720 - ThouCheese:fix/doc-to-comment-naming, r=Veykril
flip the naming of the doc comment to comment assist I did this the wrong way around when I implemented these assists, so here is a quick fix for it
2 parents d1ba547 + a0ccf00 commit 8758c15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/rust-analyzer/crates/ide-assists/src/handlers/convert_comment_from_or_to_doc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fn doc_to_comment(acc: &mut Assists, comment: ast::Comment) -> Option<()> {
4040

4141
acc.add(
4242
AssistId("doc_to_comment", AssistKind::RefactorRewrite),
43-
"Replace comment with doc comment",
43+
"Replace doc comment with comment",
4444
target,
4545
|edit| {
4646
// We need to either replace the first occurrence of /* with /***, or we need to replace
@@ -87,7 +87,7 @@ fn comment_to_doc(acc: &mut Assists, comment: ast::Comment, style: CommentPlacem
8787

8888
acc.add(
8989
AssistId("comment_to_doc", AssistKind::RefactorRewrite),
90-
"Replace doc comment with comment",
90+
"Replace comment with doc comment",
9191
target,
9292
|edit| {
9393
// We need to either replace the first occurrence of /* with /***, or we need to replace

0 commit comments

Comments
 (0)