diff --git a/scala.html.markdown b/scala.html.markdown
index 5a478f2a..35645922 100644
--- a/scala.html.markdown
+++ b/scala.html.markdown
@@ -199,7 +199,7 @@ weirdSum(2, 4) // => 16
// The return keyword exists in Scala, but it only returns from the inner-most
// def that surrounds it. It has no effect on anonymous functions. For example:
-def foo(x: Int) = {
+def foo(x: Int): Int = {
val anonFunc: Int => Int = { z =>
if (z > 5)
return z // This line makes z the return value of foo!