From 167410bcd747d34243efbf53332a7c00b6bd9377 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Sat, 17 Jun 2017 12:43:19 +0300 Subject: [PATCH] Improve comment --- redis.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redis.go b/redis.go index 8d5d7563..9812daf6 100644 --- a/redis.go +++ b/redis.go @@ -383,6 +383,7 @@ func (c *Client) pubSub() *PubSub { } // Subscribe subscribes the client to the specified channels. +// Channels can be omitted to create empty subscription. func (c *Client) Subscribe(channels ...string) *PubSub { pubsub := c.pubSub() if len(channels) > 0 { @@ -392,6 +393,7 @@ func (c *Client) Subscribe(channels ...string) *PubSub { } // PSubscribe subscribes the client to the given patterns. +// Patterns can be omitted to create empty subscription. func (c *Client) PSubscribe(channels ...string) *PubSub { pubsub := c.pubSub() if len(channels) > 0 {