Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
chore: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Dec 4, 2021
1 parent 9abfb60 commit 67073c5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,13 @@ impl Context {
for (idx, diff, overloaded_fun) in &diffs {
let alias = match diff.len() {
0 => {
// this may happen if there are functions that differ in capitalization,
// this may happen if there are functions with different casing,
// like `INDEX`and `index`
if overloaded_fun.name != first_fun.name {
let overloaded_id = overloaded_fun.name.to_snake_case();
let first_fun_id = first_fun.name.to_snake_case();
if first_fun_id != overloaded_id {
// no conflict
overloaded_id
} else {
needs_alias_for_first_fun_using_idx = true;
Expand Down

0 comments on commit 67073c5

Please sign in to comment.