Skip to content

Commit f4186e3

Browse files
committed
flip the naming of the doc comment to comment assist
1 parent b2719c4 commit f4186e3

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)