diff --git a/docs/programming-guide.md b/docs/programming-guide.md
index 65d75b85efda62531fe9dafcfc20548af9b6869a..06e4c4ce527e16be5e0f03f2c66e762cf78aaff5 100644
--- a/docs/programming-guide.md
+++ b/docs/programming-guide.md
@@ -145,7 +145,7 @@ that contains information about your application.
 
 {% highlight python %}
 conf = SparkConf().setAppName(appName).setMaster(master)
-sc = SparkContext(conf)
+sc = SparkContext(conf=conf)
 {% endhighlight %}
 
 </div>