diff --git a/docs/pubsub/subscriber/index.rst b/docs/pubsub/subscriber/index.rst
index 016d72857081..9c150453041d 100644
--- a/docs/pubsub/subscriber/index.rst
+++ b/docs/pubsub/subscriber/index.rst
@@ -40,7 +40,7 @@ to subscribe to, and it must already exist. Once you have that, it is easy:
     # values for your application.
     topic_name = 'projects/{project}/topics/{topic}'
     sub_name = 'projects/{project}/subscriptions/{subscription}'
-    subscriber.create_subscription(topic_name, sub_name)
+    subscriber.create_subscription(sub_name, topic_name)
 
 
 Pulling a Subscription