From 3012ab967da6fcd7e02dce0afb43583578ac24d7 Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Sat, 18 Nov 2023 16:12:41 +0100 Subject: Fix out of bounds in reverse --- handlers.ha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }; }; -- cgit v1.2.3