diff --git a/doc/lua.adoc b/doc/lua.adoc index a6d41a340..5a8ef3c78 100644 --- a/doc/lua.adoc +++ b/doc/lua.adoc @@ -184,7 +184,8 @@ Returns any errors found when parsing a config file string with parse_config. Example: - local errors = nh.parse_config("OPTIONS=color\nOPTIONS=!color"); + nh.parse_config("OPTIONS=color\nOPTIONS=!color"); + local errors = nh.parse_config_errors(); nh.pline("Line: " .. errors[1].line .. ", " .. errors[1].error);