Skip to content

Commit

Permalink
trivial fixes: rename utf8code -> utf8codes , bitlua.go -> bit32lua.go
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed Jun 10, 2018
1 parent 73f2572 commit 3a6125a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
File renamed without changes.
7 changes: 4 additions & 3 deletions mains/utf8lua.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package mains

import (
"github.com/yuin/gopher-lua"
"strings"

"github.com/yuin/gopher-lua"
)

func utf8code(L *lua.LState) int {
func utf8codes(L *lua.LState) int {
lstr, ok := L.Get(-1).(lua.LString)
if !ok {
L.Push(lua.LNil)
Expand Down Expand Up @@ -34,6 +35,6 @@ func utf8code(L *lua.LState) int {

func SetupUtf8Table(L *lua.LState) {
table := L.NewTable()
L.SetField(table, "codes", L.NewFunction(utf8code))
L.SetField(table, "codes", L.NewFunction(utf8codes))
L.SetGlobal("utf8", table)
}

0 comments on commit 3a6125a

Please sign in to comment.