From afe8907048a015c144b4da135cbd074935a92f81 Mon Sep 17 00:00:00 2001 From: Sarah Date: Thu, 25 Apr 2024 18:56:29 -0500 Subject: [PATCH] Start indexing from 1 in showArrayImpl --- src/Data/Show.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Data/Show.lua b/src/Data/Show.lua index 33112071..7cb05e7f 100644 --- a/src/Data/Show.lua +++ b/src/Data/Show.lua @@ -21,7 +21,7 @@ return { return function(xs) local l = #xs local ss = {} - for i = 1, l do ss[i] = f(xs[i - 1]) end + for i = 1, l do ss[i] = f(xs[i]) end return "[" .. table.concat(ss, ",") .. "]" end end)