Skip to content

Commit 089c554

Browse files
bors[bot]phynalle
andauthored
Merge #3625
3625: Fix typo r=flodiebold a=phynalle It doesn't need any description! I just fixed a typo. haha Co-authored-by: phynalle <[email protected]>
2 parents 96f19c3 + cafacb7 commit 089c554

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ra_ide/src/references.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub(crate) fn find_all_refs(
9595
let syntax = sema.parse(position.file_id).syntax().clone();
9696

9797
let (opt_name, search_kind) =
98-
if let Some(name) = get_struct_def_name_for_struc_litetal_search(&syntax, position) {
98+
if let Some(name) = get_struct_def_name_for_struct_literal_search(&syntax, position) {
9999
(Some(name), ReferenceKind::StructLiteral)
100100
} else {
101101
(find_node_at_offset::<ast::Name>(&syntax, position.offset), ReferenceKind::Other)
@@ -156,7 +156,7 @@ fn decl_access(def: &Definition, syntax: &SyntaxNode, range: TextRange) -> Optio
156156
None
157157
}
158158

159-
fn get_struct_def_name_for_struc_litetal_search(
159+
fn get_struct_def_name_for_struct_literal_search(
160160
syntax: &SyntaxNode,
161161
position: FilePosition,
162162
) -> Option<ast::Name> {

0 commit comments

Comments
 (0)