Browse Source

Update doc.go

Remove vet warning in pubsub example code.
Gary Burd 9 năm trước cách đây
mục cha
commit
908534c8b9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      redis/doc.go

+ 1 - 1
redis/doc.go

@@ -127,7 +127,7 @@
 // send and flush a subscription management command. The receive method
 // converts a pushed message to convenient types for use in a type switch.
 //
-//  psc := redis.PubSubConn{c}
+//  psc := redis.PubSubConn{Conn: c}
 //  psc.Subscribe("example")
 //  for {
 //      switch v := psc.Receive().(type) {