Merge pull request #71 from billmakes/pubsub-fix-method-spelling

fixes spelling mistake in has_subscriber
This commit is contained in:
Max Cahill 2024-01-01 13:47:28 +11:00 committed by GitHub
commit 2052cdd61a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,7 @@ function pubsub:unsubscribe(event, callback)
end
--check if there is a subscriber for a given event
function pubsub:has_subcriber(event)
function pubsub:has_subscriber(event)
return self.subscriptions[event] ~= nil
end