mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
flip the naming of the doc comment to comment assist
This commit is contained in:
parent
a46788318c
commit
64ee4d3b1e
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ fn doc_to_comment(acc: &mut Assists, comment: ast::Comment) -> Option<()> {
|
||||||
|
|
||||||
acc.add(
|
acc.add(
|
||||||
AssistId("doc_to_comment", AssistKind::RefactorRewrite),
|
AssistId("doc_to_comment", AssistKind::RefactorRewrite),
|
||||||
"Replace comment with doc comment",
|
"Replace doc comment with comment",
|
||||||
target,
|
target,
|
||||||
|edit| {
|
|edit| {
|
||||||
// We need to either replace the first occurrence of /* with /***, or we need to replace
|
// 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(
|
acc.add(
|
||||||
AssistId("comment_to_doc", AssistKind::RefactorRewrite),
|
AssistId("comment_to_doc", AssistKind::RefactorRewrite),
|
||||||
"Replace doc comment with comment",
|
"Replace comment with doc comment",
|
||||||
target,
|
target,
|
||||||
|edit| {
|
|edit| {
|
||||||
// We need to either replace the first occurrence of /* with /***, or we need to replace
|
// We need to either replace the first occurrence of /* with /***, or we need to replace
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue