From: Pasi Kallinen Date: Wed, 10 Feb 2021 20:06:36 +0000 (+0200) Subject: Fix lua doc copypaste error X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da92e0349b54226177c830515c001b03c6f38863;p=nethack Fix lua doc copypaste error --- 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);