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
  • Loading branch information
andrewrk committed Jul 11, 2018
2 parents c6c4938 + 9b054e7 commit 3aaf814
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 240 deletions.
2 changes: 1 addition & 1 deletion std/macho.zig
Expand Up @@ -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;
}
};
Expand Down

0 comments on commit 3aaf814

Please sign in to comment.