mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
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>
This commit is contained in:
commit
c619cb12d7
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ fn gen_method(acc: &mut Assists, ctx: &AssistContext) -> Option<()> {
|
|||
|
||||
acc.add(
|
||||
AssistId("generate_function", AssistKind::Generate),
|
||||
format!("Generate `{}` function", function_builder.fn_name),
|
||||
format!("Generate `{}` method", function_builder.fn_name),
|
||||
target,
|
||||
|builder| {
|
||||
let function_template = function_builder.render();
|
||||
|
|
Loading…
Reference in a new issue