summaryrefslogtreecommitdiff
path: root/lib/std/cmp.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/cmp.myr')
-rw-r--r--lib/std/cmp.myr3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/cmp.myr b/lib/std/cmp.myr
index edc5fe3..8c01bfc 100644
--- a/lib/std/cmp.myr
+++ b/lib/std/cmp.myr
@@ -25,10 +25,9 @@ generic numcmp = {a, b
const strcmp = {a, b
var l
- var i
l = min(a.len, b.len)
- for i = 0; i < l; i++
+ for var i = 0; i < l; i++
if a[i] < b[i]
-> `Before
elif a[i] > b[i]