Skip to content

Commit

Permalink
Merge pull request #1216 from ziglang/sort-improvements
Browse files Browse the repository at this point in the history
Add generic comparator generator functions for sorting
andrewrk authored Jul 11, 2018
2 parents c6c4938 + 9b054e7 commit 3aaf814
Showing 2 changed files with 87 additions and 240 deletions.
2 changes: 1 addition & 1 deletion std/macho.zig
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ pub const Symbol = struct {
name: []const u8,
address: u64,

fn addressLessThan(lhs: *const Symbol, rhs: *const Symbol) bool {
fn addressLessThan(lhs: Symbol, rhs: Symbol) bool {
return lhs.address < rhs.address;
}
};
Loading

0 comments on commit 3aaf814

Please sign in to comment.