Skip to content

Commit 7768cc5

Browse files
Fix recursive type missing error (#106)
1 parent f79e419 commit 7768cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/scalatutorial/sections/ImperativeProgramming.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ object ImperativeProgramming extends ScalaTutorialSection {
3131
* Say you have the following two functions `iterate` and `square`:
3232
*
3333
* {{{
34-
* def iterate(n: Int, f: Int => Int, x: Int) =
34+
* def iterate(n: Int, f: Int => Int, x: Int): Int =
3535
* if (n == 0) x else iterate(n-1, f, f(x))
3636
* def square(x: Int) = x * x
3737
* }}}

0 commit comments

Comments
 (0)