From d69194e8fd29e62ee7b17f173a1710ff32657259 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Tue, 27 Aug 2024 11:41:39 +0200 Subject: [PATCH] auth docs: reword LUA return paragraph Avoids misrender and warning from sphinx. --- docs/lua-records/index.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/lua-records/index.rst b/docs/lua-records/index.rst index 1216675889..3da00b29ea 100644 --- a/docs/lua-records/index.rst +++ b/docs/lua-records/index.rst @@ -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:: -- 2.47.2