Skip to content

Commit

Permalink
Merge pull request #1 from owulveryck/owulveryck-patch-1
Browse files Browse the repository at this point in the history
fix(doc): the DataAs doc indicates that arg should be a pointer
  • Loading branch information
owulveryck authored Mar 24, 2022
2 parents 9f80fd3 + fb307a3 commit d931660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/event/event_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (e Event) Data() []byte {
}

// DataAs attempts to populate the provided data object with the event payload.
// data should be a pointer type.
// obj should be a pointer type.
func (e Event) DataAs(obj interface{}) error {
data := e.Data()

Expand Down

0 comments on commit d931660

Please sign in to comment.