2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-03-31 18:53:22 +00:00

docs: put all code in codeblock for timers example

This commit is contained in:
sammyette 2022-12-28 19:33:20 -04:00
parent 61f6337f5f
commit f107d1df71
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

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