summaryrefslogtreecommitdiff
path: root/lua.go
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2024-08-23 14:02:10 +0600
committerunwox <me@unwox.com>2024-08-23 14:02:10 +0600
commit4003417f7b94648a7726995a49ab56c4bc8aad55 (patch)
tree95fc8353e83963664c9124a2985823d7b7e13c6a /lua.go
parent37229ea3864bcdc77b2341ff12ebc55e5098718e (diff)
small fixes
Diffstat (limited to 'lua.go')
-rw-r--r--lua.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua.go b/lua.go
index d7f27fa..a150e27 100644
--- a/lua.go
+++ b/lua.go
@@ -89,7 +89,7 @@ func (l *Lua) StackLen() int {
return int(C.lua_gettop(l.l))
}
-// ToInt converts a stack value with stack index -1 into a string.
+// ToInt converts a stack value with stack index into a string.
func (l *Lua) ToString(index int) string {
return C.GoString(C.lua_tolstring(l.l, C.int(index), nil))
}