Skip to content

Commit

Permalink
Correct typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Dec 2, 2024
1 parent ec1a6b6 commit e903c87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion constraint.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (cs Constraints) Check(v *Version) bool {
// to '>0.2' it is *NOT* treated as equal.
//
// Missing operator is treated as equal to '=', whitespaces
// are ignored and constraints are sorted before comaparison.
// are ignored and constraints are sorted before comparison.
func (cs Constraints) Equals(c Constraints) bool {
if len(cs) != len(c) {
return false
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (v *Version) Compare(other *Version) int {
} else if lhs < rhs {
return -1
}
// Otherwis, rhs was > lhs, they're not equal
// Otherwise, rhs was > lhs, they're not equal
return 1
}

Expand Down

0 comments on commit e903c87

Please sign in to comment.