Skip to content

Commit

Permalink
fix(doc): the DataAs doc indicates that arg should be a pointer (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
owulveryck committed Mar 24, 2022
1 parent 9f80fd3 commit 7b7049a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/event/event_data.go
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 7b7049a

Please sign in to comment.