docs(config): Fix incorrect function name in comment.

This commit is contained in:
Noah 2024-04-07 14:25:53 -05:00
parent fa9318812d
commit be2c17662d

View File

@ -12,6 +12,7 @@ type Server struct {
url string url string
username string username string
token string token string
primary bool
} }
// Configuration holds data retrieved from a Lua script. // Configuration holds data retrieved from a Lua script.
@ -19,7 +20,7 @@ type Configuration struct {
servers map[string]*Server servers map[string]*Server
} }
// parseText parses a text value from the configuration file. // getStringFromTable parses a text value from the configuration file.
func getStringFromTable(L *lua.LState, lobj lua.LValue, key string, out *string) error { func getStringFromTable(L *lua.LState, lobj lua.LValue, key string, out *string) error {
lv := L.GetTable(lobj, lua.LString(key)) lv := L.GetTable(lobj, lua.LString(key))
if text, ok := lv.(lua.LString); ok { if text, ok := lv.(lua.LString); ok {