examples/luastate.lua: Fix variable name (thanks Stephen Q)

Wed, 25 Sep 2013 15:00:13 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 25 Sep 2013 15:00:13 +0100
changeset 10
cafaa46928c8
parent 9
cefa0be5f567
child 11
1e2c945346ca

examples/luastate.lua: Fix variable name (thanks Stephen Q)

examples/luastate.lua file | annotate | diff | comparison | revisions
--- a/examples/luastate.lua	Thu Apr 19 00:29:35 2012 +0100
+++ b/examples/luastate.lua	Wed Sep 25 15:00:13 2013 +0100
@@ -98,7 +98,7 @@
 
 	local fd = file
 	if type(file) == 'string' then
-		fd = io.open(filename, "w")
+		fd = io.open(file, "w")
 	end
 	fd:write(sformat("memory = %i bytes\n", collectgarbage"count" * 1024))
 	fd:write(sformat("str_data = %i\n", str_data))

mercurial