Skip to content

Commit 5412ca6

Browse files
committed
feat: extract_struct_from_function_signature
fixed typos
1 parent 9245f70 commit 5412ca6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub(crate) fn extract_struct_from_function_signature(
3232
ctx: &AssistContext<'_>,
3333
) -> Option<()> {
3434
// TODO: get more specific than param list
35-
// how to get function name and param list/part of param list the is selected seperatly
35+
// how to get function name and param list/part of param list the is selected separately
3636
// or maybe just auto generate random name not based on function name?
3737
let fn_ast = ctx.find_node_at_offset::<ast::Fn>()?;
3838
// we independently get the param list without going through fn (fn_ast.param_list()), because for some reason when we
@@ -50,7 +50,7 @@ pub(crate) fn extract_struct_from_function_signature(
5050
// TODO: does this capture parenthesis
5151
let target = params_list.syntax().text_range();
5252
// TODO: special handiling for self?
53-
// TODO: special handling for destrutered types (or maybe just don't suppurt code action on
53+
// TODO: special handling for destrutered types (or maybe just don't support code action on
5454
// destructed types yet
5555

5656
let field_list = make::record_field_list(

0 commit comments

Comments
 (0)