aboutsummaryrefslogtreecommitdiffstats
path: root/event/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'event/example_test.go')
-rw-r--r--event/example_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/event/example_test.go b/event/example_test.go
index d4642ef2f..29938e853 100644
--- a/event/example_test.go
+++ b/event/example_test.go
@@ -30,7 +30,7 @@ func ExampleTypeMux() {
sub := mux.Subscribe(someEvent{}, otherEvent{})
go func() {
for event := range sub.Chan() {
- fmt.Printf("Received: %#v\n", event)
+ fmt.Printf("Received: %#v\n", event.Data)
}
fmt.Println("done")
close(done)