Browse Source

fix type annotation in event.ignore

pull/3/head
Izaya 2 years ago
parent
commit
a917016a66
  1. 2
      lib/event.lua

2
lib/event.lua

@ -36,7 +36,7 @@ function event.listen(e,f) -- string function -- -- run function *f* for every o
end end,string.format("[%d] %s listener",os.pid(),e))
end
function event.ignore(e,f) -- string function -- stop function *f* running for every occurance of event *e*
function event.ignore(e,f) -- string function -- -- stop function *f* running for every occurance of event *e*
computer.pushSignal("unlisten",e,tostring(f))
end

Loading…
Cancel
Save