Skip to content

Commit

Permalink
Merge pull request #16 from pgermishuys/spelling
Browse files Browse the repository at this point in the history
Fix spelling
  • Loading branch information
bennAH committed Dec 22, 2015
2 parents 2125ed6 + 7ef4675 commit ab9e5ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions event_bus.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (bus *EventBus) SubscribeOnce(topic string, fn interface{}) error {
})
}

// SubscribeOnceAsync subscribes to a topic once with an asyncrhonous callback
// SubscribeOnceAsync subscribes to a topic once with an asynchronous callback
// Handler will be removed after executing.
// Returns error if `fn` is not a function.
func (bus *EventBus) SubscribeOnceAsync(topic string, fn interface{}) error {
Expand Down Expand Up @@ -100,7 +100,7 @@ func (bus *EventBus) Unsubscribe(topic string, handler interface{}) error {
return fmt.Errorf("topic %s doesn't exist", topic)
}

// Publish executes callback defined for a topic. Any addional argument will be tranfered to the callback.
// Publish executes callback defined for a topic. Any additional argument will be transferred to the callback.
func (bus *EventBus) Publish(topic string, args ...interface{}) {
bus.lock.Lock() // will unlock if handler is not found or always after setUpPublish
defer bus.lock.Unlock()
Expand Down

0 comments on commit ab9e5ce

Please sign in to comment.