Skip to content

Commit 7b7049a

Browse files
authored
fix(doc): the DataAs doc indicates that arg should be a pointer (#765)
1 parent 9f80fd3 commit 7b7049a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v2/event/event_data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (e Event) Data() []byte {
7373
}
7474

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

0 commit comments

Comments
 (0)