Skip to content

Commit 123716a

Browse files
Merge pull request #7579 from rpiotrow/patch-2
Update delegates.md
2 parents 86c919a + 5c419a6 commit 123716a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/contextual/delegates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ given listOrd[T](given ord: Ord[T]): Ord[List[T]] {
2626
case (_, Nil) => +1
2727
case (x :: xs1, y :: ys1) =>
2828
val fst = ord.compare(x, y)
29-
if (fst != 0) fst else xs1.compareTo(ys1)
29+
if (fst != 0) fst else compare(xs1, ys1)
3030
}
3131
}
3232
```

0 commit comments

Comments
 (0)