diff options
author | Joel Bradshaw <cincodenada@gmail.com> | 2017-06-29 10:49:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-29 10:49:44 -0700 |
commit | 23cee36b4c056dcd3c01676132cb9a6588fb75ad (patch) | |
tree | 2fb140904e467ffe31890682724b5fd8e837ede4 | |
parent | bcb1b623b1db1057085982507399c62eaa053e7b (diff) |
Update more function mentions in comments
-rw-r--r-- | scala.html.markdown | 4 |
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 |