Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
it512 committed Jul 1, 2024
1 parent 4bad2e0 commit 4322235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func xtob(x1, x2 byte) (byte, bool) {
return (b1 << 4) | b2, b1 != 255 && b2 != 255
}

// Compare compare two uuids
// Compare returns an integer comparing two uuids lexicographically. The result will be 0 if a == b, -1 if a < b, and +1 if a > b.
func Compare(a, b UUID) int {
return bytes.Compare(a[:], b[:])
}

0 comments on commit 4322235

Please sign in to comment.