From f5eee4b13c17367d27d52c01d0aaf2884d77d49c Mon Sep 17 00:00:00 2001 From: Peter Lamut Date: Fri, 2 Apr 2021 00:57:47 +0200 Subject: [PATCH] docs: fix `create_topic()` call in README (#360) --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 9db987f2e..945c0beb1 100644 --- a/README.rst +++ b/README.rst @@ -110,7 +110,7 @@ messages to it project_id=os.getenv('GOOGLE_CLOUD_PROJECT'), topic='MY_TOPIC_NAME', # Set this to something appropriate. ) - publisher.create_topic(topic_name) + publisher.create_topic(name=topic_name) future = publisher.publish(topic_name, b'My first message!', spam='eggs') future.result()