DOCS/man/lua: correct example syntax

This commit is contained in:
rkscv
2024-10-29 17:14:23 +08:00
committed by Avi Halachmi
parent 466b5530c9
commit 8cd69e6de8

View File

@@ -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()