aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2023-11-18 16:12:41 +0100
committerJulian Hurst <ark@mansus.space>2023-11-18 16:12:41 +0100
commit3012ab967da6fcd7e02dce0afb43583578ac24d7 (patch)
tree89d9e362f1104c760beeb364d678020eef245ec1
parent4f66cc1c1b55440480cc568afd33d27bfc673c05 (diff)
downloadilhare-3012ab967da6fcd7e02dce0afb43583578ac24d7.tar.gz
Fix out of bounds in reverse
-rw-r--r--handlers.ha2
1 files changed, 1 insertions, 1 deletions
diff --git a/handlers.ha b/handlers.ha
index cd6a012..e73dca0 100644
--- a/handlers.ha
+++ b/handlers.ha
@@ -32,7 +32,7 @@ fn reverse(l: []str) void = {
l[s] = l[e];
l[e] = z;
s += 1;
- e += 1;
+ e -= 1;
};
};