Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaturan committed Apr 24, 2021
1 parent 8492593 commit 2ac7a78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package for Elixir language.
## API

The method names and arities/args are stable now. No change should be expected
on the package for the version `2.x.x` except any bug fixes.
on the package for the version `3.x.x` except any bug fixes.

## Installation

Expand Down
3 changes: 2 additions & 1 deletion bus.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type (
Matcher string
}

// EventOption is a function type to mutate event fields
EventOption = func(Event) Event

ctxKey int8
Expand Down Expand Up @@ -105,7 +106,7 @@ func WithSource(source string) EventOption {
}
}

// WithSource returns an option to set event's occurredAt field
// WithOccurredAt returns an option to set event's occurredAt field
func WithOccurredAt(time time.Time) EventOption {
return func(e Event) Event {
e.OccurredAt = time
Expand Down

0 comments on commit 2ac7a78

Please sign in to comment.