diff options
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/sort2.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/sort2.scala b/docs/examples/sort2.scala index 8e0b070250..e0016088bb 100644 --- a/docs/examples/sort2.scala +++ b/docs/examples/sort2.scala @@ -11,13 +11,13 @@ object sort2 { def gtPivot(x: Int) = x > pivot def eqPivot(x: Int) = x == pivot sort(a filter lePivot) ::: - sort(a filter eqPivot) ::: + (a filter eqPivot) ::: sort(a filter gtPivot) } } def main(args: Array[String]) { - val xs = List(6, 2, 8, 5, 1) + val xs = List(6, 2, 8, 5, 1, 8) println(xs) println(sort(xs)) } |