Browse Source

Update doc.go

Remove vet warning in pubsub example code.
Gary Burd 9 years ago
parent
commit
908534c8b9
1 changed files with 1 additions and 1 deletions
  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) {