diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-10-07 13:18:30 +0100 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-10-07 13:18:30 +0100 |
| commit | 85e37f2f7e202ce5c5aaf751ed6d43eb0d66e849 (patch) | |
| tree | af7d1f999cf0baab390d2b1f95f878bbd7d4c6c7 | |
| parent | b90c8063867574982c139341679e86fcc0075aee (diff) | |
Add missing `nil`
| -rw-r--r-- | core/slice/sort.odin | 4 |
1 files 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) |