| author | |
| committer | |
| log | f5f77089b76be2832640884f14c552c49c9fda1f |
| tree | 325bd9b3aed99ae59a36eb2f1cee859751aa000d |
| parent | b7e72cc4211d7b06e2b7095f48c579ce1daaf253 |
1 files changed, 0 insertions(+), 3 deletions(-)
lib/std/sort.zig-3| ... | ... | @@ -6,9 +6,6 @@ const math = std.math; |
| 6 | 6 | const builtin = @import("builtin"); |
| 7 | 7 | |
| 8 | 8 | pub fn binarySearch(comptime T: type, key: T, items: []const T, comptime compareFn: fn (lhs: T, rhs: T) math.Order) ?usize { |
| 9 | if (items.len < 1) | |
| 10 | return null; | |
| 11 | ||
| 12 | 9 | var left: usize = 0; |
| 13 | 10 | var right: usize = items.len; |
| 14 | 11 |