diff --git a/docs/pubsub_snippets.py b/docs/pubsub_snippets.py index 8c970c57cef3..96eea175c0cd 100644 --- a/docs/pubsub_snippets.py +++ b/docs/pubsub_snippets.py @@ -81,7 +81,7 @@ def client_subscription(client, to_delete): # pylint: disable=unused-argument SUBSCRIPTION_NAME = 'subscription_factory-%d' % (_millis(),) # [START client_subscription] - subscription = client.topic( + subscription = client.subscription( SUBSCRIPTION_NAME, ack_deadline=60, retain_acked_messages=True) # [END client_subscription]