Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kicdu committed Jul 19, 2017
1 parent 3eee8b1 commit 12318c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distance.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func digestDistance(x [codeSize]byte, y [codeSize]byte) (diff int) {
return
}

// diffTotal calculates diff between to Tlsh hashes for hash header and body.
// diffTotal calculates diff between two Tlsh hashes for hash header and body.
func diffTotal(a, b *Tlsh, lenDiff bool) (diff int) {
if lenDiff {
lDiff := modDiff(a.lValue, b.lValue, 256)
Expand Down Expand Up @@ -52,7 +52,7 @@ func diffTotal(a, b *Tlsh, lenDiff bool) (diff int) {
diff += (q2Diff - 1) * 12
}

// currently we only support 1 byte cheksum
// currently we only support 1 byte checksum
if a.checksum != b.checksum {
diff++
}
Expand Down

0 comments on commit 12318c3

Please sign in to comment.