Skip to content

Commit c619cb1

Browse files
bors[bot]rylev
andauthored
Merge #9869
9869: Use term "method" on label for generating method impl r=Veykril a=rylev When showing the user the `generate_function` assist, use the term "method" when generating a method instead of the term "function" (which is correct but maybe not the most appropriate in that context). Co-authored-by: Ryan Levick <me@ryanlevick.com>
2 parents 1376ece + e8de34b commit c619cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide_assists/src/handlers/generate_function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ fn gen_method(acc: &mut Assists, ctx: &AssistContext) -> Option<()> {
138138

139139
acc.add(
140140
AssistId("generate_function", AssistKind::Generate),
141-
format!("Generate `{}` function", function_builder.fn_name),
141+
format!("Generate `{}` method", function_builder.fn_name),
142142
target,
143143
|builder| {
144144
let function_template = function_builder.render();

0 commit comments

Comments
 (0)