diff --git a/docs/programming-guide.md b/docs/programming-guide.md
index 982c5eabe652b8badb51a6b13ec3fd2b9506d322..4cf83bb392636b08fdae5229e0a1f8d394220c7c 100644
--- a/docs/programming-guide.md
+++ b/docs/programming-guide.md
@@ -549,7 +549,7 @@ returning only its answer to the driver program.
 If we also wanted to use `lineLengths` again later, we could add:
 
 {% highlight java %}
-lineLengths.persist();
+lineLengths.persist(StorageLevel.MEMORY_ONLY());
 {% endhighlight %}
 
 before the `reduce`, which would cause `lineLengths` to be saved in memory after the first time it is computed.