docs: add doc for mode param of runnerMode function

pull/128/head
TorchedSammy 2022-03-22 18:33:11 -04:00
parent 053914ec45
commit 3636efe7f8
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 0 deletions

1
api.go
View File

@ -483,6 +483,7 @@ func hlinputMode(L *lua.LState) int {
// Accepted values for mode are hybrid (the default), hybridRev (sh first then Lua), // Accepted values for mode are hybrid (the default), hybridRev (sh first then Lua),
// sh, and lua. It also accepts a function, to which if it is passed one // sh, and lua. It also accepts a function, to which if it is passed one
// will call it to execute user input instead. // will call it to execute user input instead.
// --- @param mode string|function
func hlrunnerMode(L *lua.LState) int { func hlrunnerMode(L *lua.LState) int {
mode := L.CheckAny(1) mode := L.CheckAny(1)
switch mode.Type() { switch mode.Type() {