fix: typo in timer create function

ctrl-delete
TorchedSammy 2022-04-12 19:41:50 -04:00
parent ea7517be05
commit 2814f44163
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

2
api.go
View File

@ -515,7 +515,7 @@ func hlinterval(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
}
interval := time.Duration(ms) * time.Millisecond
timer := timers.creat(timerInterval, interval, cb)
timer := timers.create(timerInterval, interval, cb)
timer.start()
return c.PushingNext1(t.Runtime, timer.lua()), nil