summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean R. Owen <srowen@apache.org>2015-03-02 22:18:42 +0000
committerSean R. Owen <srowen@apache.org>2015-03-02 22:18:42 +0000
commitec42a1be293f083345c58f9b1d95b96e0b812742 (patch)
tree9b3db04e5b5d23185c9da07f895bbc611cc2ba65
parentfb97e0ec8a74c26b98a3627668443b1263f9ee14 (diff)
downloadspark-website-ec42a1be293f083345c58f9b1d95b96e0b812742.tar.gz
spark-website-ec42a1be293f083345c58f9b1d95b96e0b812742.tar.bz2
spark-website-ec42a1be293f083345c58f9b1d95b96e0b812742.zip
SPARK-4992 follow-up to inhibit undesired text wrapping in Python example
-rw-r--r--site/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/index.html b/site/index.html
index c3360efd5..5bee1841b 100644
--- a/site/index.html
+++ b/site/index.html
@@ -214,7 +214,7 @@
<div class="code">
text_file = spark.textFile(<span class="string">"hdfs://..."</span>)<br />
&nbsp;<br />
- text_file.<span class="sparkop">flatMap</span>(<span class="closure">lambda line: line.split()</span>)<br />
+ text_file.<span class="sparkop">flatMap</span>(<span class="closure">lambda&nbsp;line:&nbsp;line.split()</span>)<br />
&nbsp;&nbsp;&nbsp;&nbsp;.<span class="sparkop">map</span>(<span class="closure">lambda word: (word, 1)</span>)<br />
&nbsp;&nbsp;&nbsp;&nbsp;.<span class="sparkop">reduceByKey</span>(<span class="closure">lambda a, b: a+b</span>)
</div>