Update more function mentions in comments

This commit is contained in:
Joel Bradshaw 2017-06-29 10:49:44 -07:00 committed by GitHub
parent bcb1b623b1
commit 23cee36b4c

View File

@ -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