We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2c12b91 + 276bbb7 commit 4c88910Copy full SHA for 4c88910
src/main/scala/scalatutorial/sections/FunctionalLoops.scala
@@ -19,7 +19,7 @@ object FunctionalLoops extends ScalaTutorialSection {
19
* Example:
20
*
21
* {{{
22
- * def abs(x: Int) = if (x >= 0) x else -x
+ * def abs(x: Double) = if (x >= 0) x else -x
23
* }}}
24
25
* `x >= 0` is a ''predicate'', of type `Boolean`.
0 commit comments