Skip to content
Permalink
Browse files

Update comments

  • Loading branch information...
Raggaer committed Jun 10, 2019
1 parent 6b7f975 commit 09fd4eebbcd64d23a962f2afb3b4552e92154050
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/lua/util.go
@@ -62,7 +62,7 @@ func LuaValueToGo(dst glua.LValue) interface{} {
case glua.LString:
return string(v)
case glua.LNumber:
// gopher-lua converts numbers are float64
// gopher-lua converts numbers as float64
// we check if the number needs to be a float64
if isNumberFloat(v) {
return float64(v)
@@ -121,7 +121,7 @@ func CompileLua(filePath string) (*glua.FunctionProto, error) {
}

// DoCompiledFile takes a FunctionProto, as returned by CompileLua, and runs it in the LState. It is equivalent
// to calling DoFile on the LState with the original source file.
// to calling DoFile on the LState with the original source file
func DoCompiledFile(state *glua.LState, proto *glua.FunctionProto) error {
lfunc := state.NewFunctionFromProto(proto)
state.Push(lfunc)

0 comments on commit 09fd4ee

Please sign in to comment.
You can’t perform that action at this time.