From 38b3572d515f8d26ce95e3dfa7204c3d766064c8 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Thu, 5 Oct 2017 12:07:00 -0400 Subject: [PATCH] Fix pubsub landing page example for 'create_topic'. Closes #4123. --- docs/pubsub/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pubsub/index.rst b/docs/pubsub/index.rst index 52bc88c8b8ad..e1d435512789 100644 --- a/docs/pubsub/index.rst +++ b/docs/pubsub/index.rst @@ -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 `.