summaryrefslogtreecommitdiffhomepage
path: root/scala.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'scala.html.markdown')
-rw-r--r--scala.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/scala.html.markdown b/scala.html.markdown
index e541f4b3..192af953 100644
--- a/scala.html.markdown
+++ b/scala.html.markdown
@@ -258,9 +258,9 @@ def addTenButMaybeTwelve(x: Int): Int = {
if (z > 5)
return z // This line makes z the return value of addTenButMaybeTwelve!
else
- z + 2 // This line is the return value of anonFunc
+ z + 2 // This line is the return value of anonMaybeAddTwo
}
- anonMaybeAddTwo(x) + 10 // This line is the return value of foo
+ anonMaybeAddTwo(x) + 10 // This line is the return value of addTenButMaybeTwelve
}
addTenButMaybeTwelve(2) // Returns 14 as expected: 2 <= 5, adds 12