# HG changeset patch # User Matthew Wild # Date 1380117613 -3600 # Node ID cafaa46928c85d4040b3e4c68daf47b5c38098e2 # Parent cefa0be5f567f01f8835054f93241020293ee22f examples/luastate.lua: Fix variable name (thanks Stephen Q) diff -r cefa0be5f567 -r cafaa46928c8 examples/luastate.lua --- 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))