diff options
author | Reynold Xin <rxin@apache.org> | 2013-12-28 21:13:36 -1000 |
---|---|---|
committer | Reynold Xin <rxin@apache.org> | 2013-12-28 21:13:36 -1000 |
commit | 79b20e4dbe3dcd8559ec8316784d3334bb55868b (patch) | |
tree | 1b1abb6595b44d976fc34cce9c61a71eaa00bf83 /docs/scala-programming-guide.md | |
parent | 7375047d516c5aa69221611f5f7b0f1d367039af (diff) | |
parent | 17f6620a7136166f04fee126572ec2ef12a8186a (diff) | |
download | spark-79b20e4dbe3dcd8559ec8316784d3334bb55868b.tar.gz spark-79b20e4dbe3dcd8559ec8316784d3334bb55868b.tar.bz2 spark-79b20e4dbe3dcd8559ec8316784d3334bb55868b.zip |
Merge pull request #310 from jyunfan/master
Fix typo in the Accumulators section
Change 'val' to 'var'
Diffstat (limited to 'docs/scala-programming-guide.md')
-rw-r--r-- | docs/scala-programming-guide.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/scala-programming-guide.md b/docs/scala-programming-guide.md index 56d2a3a4a0..1064dae7ae 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) |