docs: put all code in codeblock for timers example

readline-upstream
sammyette 2022-12-28 19:33:20 -04:00
parent 61f6337f5f
commit f107d1df71
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

View File

@ -137,11 +137,11 @@ An example of usage:
local t = hilbish.timers.create(1, 5000, function()
print 'hello!'
end)
```
t:stop()
print(t.running, t.duration, t.type)
t:start()
```
*/
func (th *timersModule) loader(rtm *rt.Runtime) *rt.Table {
timerMethods := rt.NewTable()