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:13:44 UTC

[1/2] git commit: Fix typo in the Accumulators section

Updated Branches:
  refs/heads/master 7375047d5 -> 79b20e4db


Fix typo in the Accumulators section

val => var

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

Branch: refs/heads/master
Commit: 17f6620a7136166f04fee126572ec2ef12a8186a
Parents: 7375047
Author: Jyun-Fan Tsai <jy...@gmail.com>
Authored: Sun Dec 29 11:30:02 2013 +0800
Committer: Jyun-Fan Tsai <jy...@gmail.com>
Committed: Sun Dec 29 11:30:02 2013 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/17f6620a/docs/scala-programming-guide.md
----------------------------------------------------------------------
diff --git a/docs/scala-programming-guide.md b/docs/scala-programming-guide.md
index 56d2a3a..1064dae 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> val accum = sc.accumulator(0)
+scala> var accum = sc.accumulator(0)
 accum: spark.Accumulator[Int] = 0
 
 scala> sc.parallelize(Array(1, 2, 3, 4)).foreach(x => accum += x)


[2/2] git commit: Merge pull request #310 from jyunfan/master

Posted by rx...@apache.org.
Merge pull request #310 from jyunfan/master

Fix typo in the Accumulators section

Change 'val' to 'var'


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

Branch: refs/heads/master
Commit: 79b20e4dbe3dcd8559ec8316784d3334bb55868b
Parents: 7375047 17f6620
Author: Reynold Xin <rx...@apache.org>
Authored: Sat Dec 28 21:13:36 2013 -1000
Committer: Reynold Xin <rx...@apache.org>
Committed: Sat Dec 28 21:13:36 2013 -1000

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