mirror of https://github.com/Hilbis/Hilbish
docs: put all code in codeblock for timers example
parent
61f6337f5f
commit
f107d1df71
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue