diff options
| author | Julian Hurst <ark@mansus.space> | 2023-11-18 16:12:41 +0100 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2023-11-18 16:12:41 +0100 |
| commit | 3012ab967da6fcd7e02dce0afb43583578ac24d7 (patch) | |
| tree | 89d9e362f1104c760beeb364d678020eef245ec1 | |
| parent | 4f66cc1c1b55440480cc568afd33d27bfc673c05 (diff) | |
| download | ilhare-3012ab967da6fcd7e02dce0afb43583578ac24d7.tar.gz | |
Fix out of bounds in reverse
| -rw-r--r-- | handlers.ha | 2 |
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; }; }; |
