manpage: fix formatting of example code

This commit is contained in:
wm4
2014-02-11 01:14:08 +01:00
parent 0ed6644ded
commit d473933923
+7 -6
View File
@@ -97,13 +97,14 @@ The ``mp`` module is preloaded, although it can be loaded manually with
Example:
```
function my_fn()
print("start of playback!")
end
::
function my_fn()
print("start of playback!")
end
mp.register_event("playback-start", my_fn)
mp.register_event("playback-start", my_fn)
```
``mp.add_timeout(seconds, fn)``
Call the given function fn when the given number of seconds has elapsed.