Skip to content

Commit efd0058

Browse files
authored
chore: fix typos in comments (#255)
1 parent 753e9e2 commit efd0058

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks/use-ast.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function useAST() {
3838
});
3939
astParseResult = { ast, ok: true };
4040
} catch (err) {
41-
// error occured e.g. because the JS code cannot be parsed into an AST, or the esquery selector is no valid selector --> just ignore (no highlighted ranges)
41+
// error occurred e.g. because the JS code cannot be parsed into an AST, or the esquery selector is no valid selector --> just ignore (no highlighted ranges)
4242
astParseResult = { ok: false, errors: [err as FileError] };
4343
}
4444
break;
@@ -140,7 +140,7 @@ function getEsqueryMatchedNodes(ast: unknown, esquerySelector: string) {
140140
) as unknown[];
141141
return esqueryMatchedNodes;
142142
} catch {
143-
// error occured e.g. because the esquery selector is no valid selector --> just ignore (no nodes matched --> no highlighted ranges)
143+
// error occurred e.g. because the esquery selector is no valid selector --> just ignore (no nodes matched --> no highlighted ranges)
144144
}
145145
}
146146
return [];

0 commit comments

Comments
 (0)