We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8c7f5f commit a355124Copy full SHA for a355124
testdata/fuzz/FuzzComparators/9b49ee68467ea2f3
@@ -0,0 +1,3 @@
1
+go test fuzz v1
2
+string("1-10")
3
+string("1.0.0")
version.go
@@ -192,9 +192,9 @@ func (v *Version) CompareTo(u *Version) int {
192
return -1
193
}
194
} else if vPatch == vMinor && u.bytes[uIdx] == '0' {
195
- return 0
+ // continue
196
} else if uPatch == uMinor && v.bytes[vIdx] == '0' {
197
198
} else if la > lb {
199
return 1
200
} else {
0 commit comments