You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2013/12/29 08:26:05 UTC

git commit: Revert "Merge pull request #310 from jyunfan/master"

Updated Branches:
  refs/heads/master 79b20e4db -> 72a17b69f


Revert "Merge pull request #310 from jyunfan/master"

This reverts commit 79b20e4dbe3dcd8559ec8316784d3334bb55868b, reversing
changes made to 7375047d516c5aa69221611f5f7b0f1d367039af.


Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/72a17b69
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/72a17b69
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/72a17b69

Branch: refs/heads/master
Commit: 72a17b69f517ad7149d3bcd3a89e2cf715a2f65f
Parents: 79b20e4
Author: Reynold Xin <rx...@apache.org>
Authored: Sat Dec 28 21:25:40 2013 -1000
Committer: Reynold Xin <rx...@apache.org>
Committed: Sat Dec 28 21:25:40 2013 -1000

----------------------------------------------------------------------
 docs/scala-programming-guide.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/72a17b69/docs/scala-programming-guide.md
----------------------------------------------------------------------
diff --git a/docs/scala-programming-guide.md b/docs/scala-programming-guide.md
index 1064dae..56d2a3a 100644
--- a/docs/scala-programming-guide.md
+++ b/docs/scala-programming-guide.md
@@ -349,7 +349,7 @@ An accumulator is created from an initial value `v` by calling `SparkContext.acc
 The interpreter session below shows an accumulator being used to add up the elements of an array:
 
 {% highlight scala %}
-scala> var accum = sc.accumulator(0)
+scala> val accum = sc.accumulator(0)
 accum: spark.Accumulator[Int] = 0
 
 scala> sc.parallelize(Array(1, 2, 3, 4)).foreach(x => accum += x)