Skip to content

Commit

Permalink
fix missing import from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Dec 15, 2017
1 parent 6bc0561 commit 68f6332
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions std/sort.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const std = @import("index.zig");
const assert = std.debug.assert;
const mem = std.mem;
const math = std.math;
const builtin = @import("builtin");

/// Stable in-place sort. O(n) best case, O(pow(n, 2)) worst case. O(1) memory (no allocator required).
pub fn insertionSort(comptime T: type, items: []T, lessThan: fn(lhs: &const T, rhs: &const T)->bool) {
Expand Down

0 comments on commit 68f6332

Please sign in to comment.