Skip to content

Commit e23acfb

Browse files
oderskybishabosha
andauthored
Update library/src/scala/NamedTuple.scala
Co-authored-by: Jamie Thompson <[email protected]>
1 parent 66a6ac1 commit e23acfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/NamedTuple.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ object NamedTuple:
129129
val Empty: Empty = EmptyTuple
130130

131131
/** The ordering instance for named tuples */
132-
given namedTupleOrdering: [N <: Tuple, V <: Tuple] => (ord: Ordering[V]) => Ordering[NamedTuple[N, V]]:
132+
given namedTupleOrdering: [N <: Tuple, V <: Tuple] => (ord: Ordering[V]) => Ordering[NamedTuple[N, V]] = ord
133133
def compare(x: NamedTuple[N, V], y: NamedTuple[N, V]): Int =
134134
ord.compare(x.toTuple, y.toTuple)
135135
end NamedTuple

0 commit comments

Comments
 (0)