From 85e37f2f7e202ce5c5aaf751ed6d43eb0d66e849 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 7 Oct 2025 13:18:30 +0100 Subject: Add missing `nil` --- core/slice/sort.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/slice/sort.odin b/core/slice/sort.odin index 7485679c8..3d5bad34e 100644 --- a/core/slice/sort.odin +++ b/core/slice/sort.odin @@ -358,7 +358,7 @@ sort_by_key :: proc(data: $T/[]$E, key: proc(E) -> $K) where ORD(K) { case a > b: return .Greater } return .Equal - }) + }, nil) } 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 } return .Equal - }) + }, nil) } @(require_results) -- cgit v1.2.3