From 3eb9c65c7b456c7cd945fff5fdace50f3fa2df7b Mon Sep 17 00:00:00 2001 From: kikito Date: Fri, 19 Sep 2014 22:52:10 +0200 Subject: [PATCH] fix inconsistent var name --- inspect.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inspect.lua b/inspect.lua index f656755..a23aa63 100644 --- a/inspect.lua +++ b/inspect.lua @@ -236,12 +236,12 @@ function Inspector:putTable(t) local nonSequentialKeys = getNonSequentialKeys(t) local length = #t local mt = getmetatable(t) - local to_string_result = getToStringResultSafely(t, mt) + local toStringResult = getToStringResultSafely(t, mt) self:puts('{') self:down(function() - if to_string_result then - self:puts(' -- ', escape(to_string_result)) + if toStringResult then + self:puts(' -- ', escape(toStringResult)) if length >= 1 then self:tabify() end end