summaryrefslogtreecommitdiffhomepage
path: root/scala.html.markdown
diff options
context:
space:
mode:
authorJoel Bradshaw <cincodenada@gmail.com>2017-06-29 10:49:44 -0700
committerGitHub <noreply@github.com>2017-06-29 10:49:44 -0700
commit23cee36b4c056dcd3c01676132cb9a6588fb75ad (patch)
tree2fb140904e467ffe31890682724b5fd8e837ede4 /scala.html.markdown
parentbcb1b623b1db1057085982507399c62eaa053e7b (diff)
Update more function mentions in comments
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