From ad084a39f5d317074088d3a6149eab7af2201293 Mon Sep 17 00:00:00 2001 From: mertcandav Date: Thu, 25 Jul 2024 12:47:29 +0300 Subject: [PATCH] compiler: fix typo --- src/julec/opt/scope.jule | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }