about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLuuk Wester <luuk.wester@gmail.com>2024-07-28 00:48:08 +0200
committerLuuk Wester <luuk.wester@gmail.com>2024-07-28 00:48:08 +0200
commitf4186e37c87f706f216fba92c873b1f61cd8f29f (patch)
treed71c57c9993e5d99be1138ee0656329d66b726c6 /src
parentb2719c4914ad077869aad1d0f397f45cc21c71c6 (diff)
downloadrust-f4186e37c87f706f216fba92c873b1f61cd8f29f.tar.gz
rust-f4186e37c87f706f216fba92c873b1f61cd8f29f.zip
flip the naming of the doc comment to comment assist
Diffstat (limited to 'src')
-rw-r--r--src/tools/rust-analyzer/crates/ide-assists/src/handlers/convert_comment_from_or_to_doc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/rust-analyzer/crates/ide-assists/src/handlers/convert_comment_from_or_to_doc.rs b/src/tools/rust-analyzer/crates/ide-assists/src/handlers/convert_comment_from_or_to_doc.rs
index 953119fd1ff..c7b1314c861 100644
--- a/src/tools/rust-analyzer/crates/ide-assists/src/handlers/convert_comment_from_or_to_doc.rs
+++ b/src/tools/rust-analyzer/crates/ide-assists/src/handlers/convert_comment_from_or_to_doc.rs
@@ -40,7 +40,7 @@ fn doc_to_comment(acc: &mut Assists, comment: ast::Comment) -> Option<()> {
 
     acc.add(
         AssistId("doc_to_comment", AssistKind::RefactorRewrite),
-        "Replace comment with doc comment",
+        "Replace doc comment with comment",
         target,
         |edit| {
             // 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
 
     acc.add(
         AssistId("comment_to_doc", AssistKind::RefactorRewrite),
-        "Replace doc comment with comment",
+        "Replace comment with doc comment",
         target,
         |edit| {
             // We need to either replace the first occurrence of /* with /***, or we need to replace