spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [1/2] git commit: Fix typo in the Accumulators section
Date Sun, 29 Dec 2013 07:13:44 GMT
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 <jyunfan@gmail.com>
Authored: Sun Dec 29 11:30:02 2013 +0800
Committer: Jyun-Fan Tsai <jyunfan@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)


Mime
View raw message