diff --git a/src/julec/opt/scope.jule b/src/julec/opt/scope.jule index aec82d5c9..16079e809 100644 --- a/src/julec/opt/scope.jule +++ b/src/julec/opt/scope.jule @@ -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: @@ -192,7 +192,7 @@ impl scopeOptimizer { continue } constCase = true - self.buildDefaultConstatTrueCase(case, i, m) + self.buildDefaultConstantTrueCase(case, i, m) break }