summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2004-03-24 12:00:00 +0000
committerrepogen <>2004-03-24 12:00:00 +0000
commitced7bbbe7a257ce6de94069d5dbf6672aeafd4d9 (patch)
tree2a01a79e6a4f451dccd247c70310ad957204cefa /test
parente7731a8fb8a317aa5c444ef073bfad82fa5baa54 (diff)
downloadlua-github-5.1-work0.tar.gz
Lua 5.1-work05.1-work0
Diffstat (limited to 'test')
-rw-r--r--test/fibfor.lua2
-rw-r--r--test/trace-calls.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/fibfor.lua b/test/fibfor.lua
index 19bb34b4..8bbba39c 100644
--- a/test/fibfor.lua
+++ b/test/fibfor.lua
@@ -7,7 +7,7 @@ function generatefib (n)
coroutine.yield(a)
a, b = b, a+b
end
- end, n)
+ end)
end
for i in generatefib(1000) do print(i) end
diff --git a/test/trace-calls.lua b/test/trace-calls.lua
index 63c8b8f3..5613c2cb 100644
--- a/test/trace-calls.lua
+++ b/test/trace-calls.lua
@@ -3,7 +3,7 @@
local level=0
-function hook(event)
+local function hook(event)
local t=debug.getinfo(3)
io.write(level," >>> ",string.rep(" ",level))
if t~=nil and t.currentline>=0 then io.write(t.short_src,":",t.currentline," ") end