From be2c17662dde9a9b99523bfd6d68dc3916529c7f Mon Sep 17 00:00:00 2001 From: Noah Date: Sun, 7 Apr 2024 14:25:53 -0500 Subject: [PATCH] docs(config): Fix incorrect function name in comment. --- config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index 0d8f02e..af34cc0 100644 --- a/config.go +++ b/config.go @@ -12,6 +12,7 @@ type Server struct { url string username string token string + primary bool } // Configuration holds data retrieved from a Lua script. @@ -19,7 +20,7 @@ type Configuration struct { 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 { lv := L.GetTable(lobj, lua.LString(key)) if text, ok := lv.(lua.LString); ok {