From 8cd69e6de84446b588f038aa43e39f783cd0b159 Mon Sep 17 00:00:00 2001 From: rkscv Date: Tue, 29 Oct 2024 17:14:23 +0800 Subject: [PATCH] DOCS/man/lua: correct example syntax --- DOCS/man/lua.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index bd5a907d5b..a5f8923218 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -518,7 +518,7 @@ The ``mp`` module is preloaded, although it can be loaded manually with seconds = 0 timer = mp.add_periodic_timer(1, function() print("called every second") - # stop it after 10 seconds + -- stop it after 10 seconds seconds = seconds + 1 if seconds >= 10 then timer:kill()