Skip to content

Commit

Permalink
Fix typo in the Accumulators section
Browse files Browse the repository at this point in the history
val => var
  • Loading branch information
jyunfan committed Dec 29, 2013
1 parent 7375047 commit 17f6620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/scala-programming-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 17f6620

Please sign in to comment.