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.
1 parent 8d4906f commit 2ebb4e6Copy full SHA for 2ebb4e6
docs/docs/reference/instances/instance-defs.md
@@ -17,7 +17,7 @@ instance IntOrd of Ord[Int] {
17
if (x < y) -1 else if (x > y) +1 else 0
18
}
19
20
-instance ListOrd[T: Ord] for Ord[List[T]] {
+instance ListOrd[T: Ord] of Ord[List[T]] {
21
def (xs: List[T]) compareTo (ys: List[T]): Int = (xs, ys) match {
22
case (Nil, Nil) => 0
23
case (Nil, _) => -1
0 commit comments