From b15a7dd19167fadcd7ef68d7807fb0915935fc5c Mon Sep 17 00:00:00 2001 From: Abigail Date: Tue, 19 Jan 2021 17:54:23 +0100 Subject: Make lua variables lexical --- challenge-096/abigail/lua/ch-1.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenge-096/abigail/lua/ch-1.lua b/challenge-096/abigail/lua/ch-1.lua index 68d1c5eb86..9c4b1de913 100644 --- a/challenge-096/abigail/lua/ch-1.lua +++ b/challenge-096/abigail/lua/ch-1.lua @@ -2,7 +2,7 @@ for line in io . lines () do -- -- Extract words and put them into an array, in reverse. -- - words = {} + local words = {} for str in string . gmatch (line, "[^ ]+") do table . insert (words, 1, str) end -- cgit