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 86c919a + 5c419a6 commit 123716aCopy full SHA for 123716a
docs/docs/reference/contextual/delegates.md
@@ -26,7 +26,7 @@ given listOrd[T](given ord: Ord[T]): Ord[List[T]] {
26
case (_, Nil) => +1
27
case (x :: xs1, y :: ys1) =>
28
val fst = ord.compare(x, y)
29
- if (fst != 0) fst else xs1.compareTo(ys1)
+ if (fst != 0) fst else compare(xs1, ys1)
30
}
31
32
```
0 commit comments