mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 06:38:47 +00:00
Add missing nil
This commit is contained in:
@@ -358,7 +358,7 @@ sort_by_key :: proc(data: $T/[]$E, key: proc(E) -> $K) where ORD(K) {
|
|||||||
case a > b: return .Greater
|
case a > b: return .Greater
|
||||||
}
|
}
|
||||||
return .Equal
|
return .Equal
|
||||||
})
|
}, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
reverse_sort_by_key :: proc(data: $T/[]$E, key: proc(E) -> $K) where ORD(K) {
|
reverse_sort_by_key :: proc(data: $T/[]$E, key: proc(E) -> $K) where ORD(K) {
|
||||||
@@ -378,7 +378,7 @@ reverse_sort_by_key :: proc(data: $T/[]$E, key: proc(E) -> $K) where ORD(K) {
|
|||||||
case a > b: return .Less
|
case a > b: return .Less
|
||||||
}
|
}
|
||||||
return .Equal
|
return .Equal
|
||||||
})
|
}, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
@(require_results)
|
@(require_results)
|
||||||
|
|||||||
Reference in New Issue
Block a user