Skip to content

Commit f2bdb32

Browse files
author
Javier de Silóniz Sandino
authored
Merge pull request #43 from slashdev1/patch-1
Update GettingStartedWithFPSection.scala
2 parents 1899c04 + 13101ac commit f2bdb32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/fpinscalalib/GettingStartedWithFPSection.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ object GettingStartedWithFPSection
5656
@annotation.tailrec
5757
def go(n: Int): Boolean =
5858
if (n >= as.length - 1) true
59-
else if (ordering(as(n), as(n + 1))) false
59+
else if (!ordering(as(n), as(n + 1))) false
6060
else go(n + 1)
6161

6262
go(0)

0 commit comments

Comments
 (0)