aboutsummaryrefslogtreecommitdiff
path: root/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'example_test.go')
-rw-r--r--example_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/example_test.go b/example_test.go
index 5b31475..0547111 100644
--- a/example_test.go
+++ b/example_test.go
@@ -27,7 +27,7 @@ func ExampleDial() {
return
}
- fmt.Printf("%d %d %s\n", msg.ID, msg.Channel, msg.Data)
+ fmt.Printf("%d %d %s\n", msg.ID, msg.Type, msg.Data)
s.close()
}
@@ -65,7 +65,7 @@ func (s *server) handle(conn net.Conn) {
return
}
- fmt.Printf("%d %d %s\n", msg.ID, msg.Channel, msg.Data)
+ fmt.Printf("%d %d %s\n", msg.ID, msg.Type, msg.Data)
_, err = c.Send(binproto.NewMessage(112, 5, []byte("hey")))
if err != nil {