]> granicus.if.org Git - nethack/commitdiff
Fix lua doc copypaste error
authorPasi Kallinen <paxed@alt.org>
Wed, 10 Feb 2021 20:06:36 +0000 (22:06 +0200)
committerPasi Kallinen <paxed@alt.org>
Wed, 10 Feb 2021 20:06:36 +0000 (22:06 +0200)
doc/lua.adoc

index a6d41a3402ce95ec5c389552f6e433ed1bac1d02..5a8ef3c781eb9311cf550ea5e4c1d4a6eb6023c4 100644 (file)
@@ -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);