From d2f43ea1a705c4611e55ca3be07633d0d7b6168f Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Tue, 4 Jun 2024 01:10:59 +0200 Subject: [PATCH] [inspect] fix inserting to table --- inspect.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inspect.lua b/inspect.lua index 1e982ca..c8bb684 100644 --- a/inspect.lua +++ b/inspect.lua @@ -21,8 +21,8 @@ end local function prepareObject(other) assert(type(other) == "table", "object has to be a table") local keys = {} - for key, _ in pairs(other) do - keys.insert(key) + for k, _ in pairs(other) do + table.insert(keys, k) end table.sort(keys) return other, keys