Skip to content

Commit 053b04c

Browse files
authored
Correct typos in comments (#134)
1 parent a7c7fbc commit 053b04c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

constraint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (cs Constraints) Check(v *Version) bool {
107107
// to '>0.2' it is *NOT* treated as equal.
108108
//
109109
// Missing operator is treated as equal to '=', whitespaces
110-
// are ignored and constraints are sorted before comaparison.
110+
// are ignored and constraints are sorted before comparison.
111111
func (cs Constraints) Equals(c Constraints) bool {
112112
if len(cs) != len(c) {
113113
return false

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func (v *Version) Compare(other *Version) int {
174174
} else if lhs < rhs {
175175
return -1
176176
}
177-
// Otherwis, rhs was > lhs, they're not equal
177+
// Otherwise, rhs was > lhs, they're not equal
178178
return 1
179179
}
180180

0 commit comments

Comments
 (0)