mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 16:33:02 +00:00
DOCS/man/lua: correct example syntax
This commit is contained in:
parent
466b5530c9
commit
8cd69e6de8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user