Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
huangkunbin committed May 16, 2020
1 parent 92eddbb commit b099a37
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions newgame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ local function create_file(typ, temp_file_path, parameter)
local template = template_file:read("*a")
template_file:close()

local str = etlua.compile(template)
local file = str(parameter)
local func = etlua.compile(template)
local result = func(parameter)

local file_path
local file_name
Expand Down Expand Up @@ -116,9 +116,9 @@ local function create_file(typ, temp_file_path, parameter)
return
end

local code = assert(io.open(file_name, 'w'))
code:write(file)
code:close()
local file = assert(io.open(file_name, 'w'))
file:write(result)
file:close()
end

local common_class_pkg_path = "import com." .. PROJECT_NAME .. ".game.gamehall.dto."
Expand Down

0 comments on commit b099a37

Please sign in to comment.