Skip to content

Commit

Permalink
compiler: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Jul 25, 2024
1 parent f1f6d3a commit ad084a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/julec/opt/scope.jule
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl scopeOptimizer {
}
}

fn buildDefaultConstatTrueCase(mut self, mut case: &Case, mut &i: int, mut &m: &Match) {
fn buildDefaultConstantTrueCase(mut self, mut case: &Case, mut &i: int, mut &m: &Match) {
case.Exprs = nil // Remove expressions to remove eval overhead.
let start = i
loop:
Expand Down Expand Up @@ -192,7 +192,7 @@ impl scopeOptimizer {
continue
}
constCase = true
self.buildDefaultConstatTrueCase(case, i, m)
self.buildDefaultConstantTrueCase(case, i, m)
break
}

Expand Down

0 comments on commit ad084a3

Please sign in to comment.