From d9394a84334bdace3ead452434e84684d607bff2 Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Wed, 10 May 2017 15:29:18 -0700 Subject: [PATCH] Fix snippet typo. --- docs/pubsub_snippets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]