summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2019-03-25 08:35:00 -0700
committerGitHub <noreply@github.com>2019-03-25 08:35:00 -0700
commit2652c6bfd1a268ce4e042dad93694206c2dd788f (patch)
tree59878fb41d1e86d4ff6613aed25cfa012646c792
parentc26e7c545f0b6205465394908ae18a248b79cc86 (diff)
parent5780e619db0ccd63f4a8561f8e58c1d4ddb8daf0 (diff)
downloadredis-py-2652c6bfd1a268ce4e042dad93694206c2dd788f.tar.gz
Merge pull request #1156 from horizon365/master
miss positional argument in README example
-rw-r--r--README.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 383b731..8726d39 100644
--- a/README.rst
+++ b/README.rst
@@ -582,7 +582,7 @@ application.
>>> p = r.pubsub(ignore_subscribe_messages=True)
>>> p.subscribe('my-channel')
>>> p.get_message() # hides the subscribe message and returns None
- >>> r.publish('my-channel')
+ >>> r.publish('my-channel', 'my data')
1
>>> p.get_message()
{'channel': 'my-channel', 'data': 'my data', 'pattern': None, 'type': 'message'}