]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth docs: reword LUA return paragraph 14592/head
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 27 Aug 2024 09:41:39 +0000 (11:41 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 27 Aug 2024 12:09:28 +0000 (14:09 +0200)
Avoids misrender and warning from sphinx.

docs/lua-records/index.rst

index 1216675889431d32afd14013bd90fee3266feff3..3da00b29ea07702e1e935fbfa40fb33656a69285 100644 (file)
@@ -177,9 +177,10 @@ outside of Europe will hit 198.51.100.1 as long as it is available, and the
 
 Advanced topics
 ---------------
-By default, LUA records are executed with ``return `` prefixed to them. This saves
-a lot of typing for common cases. To run actual Lua scripts, start a record with a ``;``
-which indicates no ``return `` should be prepended.
+
+By default, LUA records are executed as if they were the argument to Lua's ``return`` statement.
+This saves a lot of typing for common cases.
+To run actual Lua scripts, start a record with a semicolon (``;``). You need to add your own ``return`` statement.
 
 To keep records more concise and readable, configuration can be stored in
 separate records. The full example from above can also be written as::