Skip to content

Commit

Permalink
Fix pubsub landing page example for 'create_topic'. (#4124)
Browse files Browse the repository at this point in the history
Closes #4123.
  • Loading branch information
tseaver authored Oct 5, 2017
1 parent d3ef455 commit 400536d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pubsub/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ messages to it
... project_id=os.getenv('GOOGLE_CLOUD_PROJECT'),
... topic='MY_TOPIC_NAME', # Set this to something appropriate.
... )
>>> publisher.create_topic()
>>> publisher.create_topic(topic) # raises conflict if topic exists
>>> publisher.publish(topic, b'My first message!', spam='eggs')
To learn more, consult the :doc:`publishing documentation <publisher/index>`.
Expand Down

0 comments on commit 400536d

Please sign in to comment.