Skip to content

Commit

Permalink
Merge pull request #2 from rillig/patch-1
Browse files Browse the repository at this point in the history
natsort: fix typo in comment
  • Loading branch information
fvbommel authored Sep 19, 2018
2 parents 256737a + bafa067 commit efcd4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sortorder/natsort.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func NaturalLess(str1, str2 string) bool {
if len1, len2 := idx1-nonZero1, idx2-nonZero2; len1 != len2 {
return len1 < len2
}
// If they're not equal, string comparison is correct.
// If they're equal, string comparison is correct.
if nr1, nr2 := str1[nonZero1:idx1], str2[nonZero2:idx2]; nr1 != nr2 {
return nr1 < nr2
}
Expand Down

0 comments on commit efcd4e0

Please sign in to comment.