Skip to content

Commit 400536d

Browse files
authored
Fix pubsub landing page example for 'create_topic'. (#4124)
Closes #4123.
1 parent d3ef455 commit 400536d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/pubsub/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ messages to it
6363
... project_id=os.getenv('GOOGLE_CLOUD_PROJECT'),
6464
... topic='MY_TOPIC_NAME', # Set this to something appropriate.
6565
... )
66-
>>> publisher.create_topic()
66+
>>> publisher.create_topic(topic) # raises conflict if topic exists
6767
>>> publisher.publish(topic, b'My first message!', spam='eggs')
6868
6969
To learn more, consult the :doc:`publishing documentation <publisher/index>`.

0 commit comments

Comments
 (0)