diff options
Diffstat (limited to 'docs/programming-guide.md')
-rw-r--r-- | docs/programming-guide.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/programming-guide.md b/docs/programming-guide.md index 2d6f7767d9..5ebafa40b0 100644 --- a/docs/programming-guide.md +++ b/docs/programming-guide.md @@ -629,7 +629,7 @@ class MyClass { } {% endhighlight %} -is equilvalent to writing `rdd.map(x => this.field + x)`, which references all of `this`. To avoid this +is equivalent to writing `rdd.map(x => this.field + x)`, which references all of `this`. To avoid this issue, the simplest way is to copy `field` into a local variable instead of accessing it externally: {% highlight scala %} |