@@ -11,7 +11,7 @@ use crate::{
11
11
12
12
// Assist: generate_enum_try_into_method
13
13
//
14
- // Generate an `try_into_` method for an enum variant.
14
+ // Generate a `try_into_` method for this enum variant.
15
15
//
16
16
// ```
17
17
// enum Value {
@@ -41,7 +41,7 @@ pub(crate) fn generate_enum_try_into_method(acc: &mut Assists, ctx: &AssistConte
41
41
acc,
42
42
ctx,
43
43
"generate_enum_try_into_method" ,
44
- "Generate an `try_into_` method for an enum variant" ,
44
+ "Generate a `try_into_` method for this enum variant" ,
45
45
ProjectionProps {
46
46
fn_name_prefix : "try_into" ,
47
47
self_param : "self" ,
@@ -55,7 +55,7 @@ pub(crate) fn generate_enum_try_into_method(acc: &mut Assists, ctx: &AssistConte
55
55
56
56
// Assist: generate_enum_as_method
57
57
//
58
- // Generate an `as_` method for an enum variant.
58
+ // Generate an `as_` method for this enum variant.
59
59
//
60
60
// ```
61
61
// enum Value {
@@ -85,7 +85,7 @@ pub(crate) fn generate_enum_as_method(acc: &mut Assists, ctx: &AssistContext) ->
85
85
acc,
86
86
ctx,
87
87
"generate_enum_as_method" ,
88
- "Generate an `as_` method for an enum variant" ,
88
+ "Generate an `as_` method for this enum variant" ,
89
89
ProjectionProps {
90
90
fn_name_prefix : "as" ,
91
91
self_param : "&self" ,
@@ -141,7 +141,7 @@ fn generate_enum_projection_method(
141
141
142
142
let target = variant. syntax ( ) . text_range ( ) ;
143
143
acc. add_group (
144
- & GroupLabel ( "Generate `is_`,`as_`,`try_into_`" . to_owned ( ) ) ,
144
+ & GroupLabel ( "Generate an `is_`,`as_`, or `try_into_` for this enum variant " . to_owned ( ) ) ,
145
145
AssistId ( assist_id, AssistKind :: Generate ) ,
146
146
assist_description,
147
147
target,
0 commit comments