Skip to content

Commit 2870b01

Browse files
committed
Explicitly say that the assist removes *redundant* parentheses
1 parent ab06194 commit 2870b01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ide-assists/src/handlers/remove_parentheses.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::{AssistContext, AssistId, AssistKind, Assists};
44

55
// Assist: remove_parentheses
66
//
7-
// Removes useless parentheses.
7+
// Removes redundant parentheses.
88
//
99
// ```
1010
// fn main() {
@@ -51,7 +51,7 @@ pub(crate) fn remove_parentheses(acc: &mut Assists, ctx: &AssistContext<'_>) ->
5151
let target = parens.syntax().text_range();
5252
acc.add(
5353
AssistId("remove_parentheses", AssistKind::Refactor),
54-
"Remove parentheses",
54+
"Remove redundant parentheses",
5555
target,
5656
|builder| {
5757
builder.delete(TextRange::new(delete_from_l, delete_to_l));

0 commit comments

Comments
 (0)