summaryrefslogtreecommitdiff
path: root/lua.go
diff options
context:
space:
mode:
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))
}