Skip to content

Commit 0912168

Browse files
author
arshchimni
committed
update comment
1 parent 966635e commit 0912168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

constraints.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ func constraintCaret(v *Version, c *constraint) (bool, error) {
534534
}
535535
return false, fmt.Errorf("%s does not have same minor version as %s. Expected minor versions to match when constraint major version is 0", v, c.orig)
536536
}
537-
// ^ when the minor is 0 and minor > 0 is >=0.y.z < 0.y+1
537+
// ^ when the minor is 0 and minor > 0 is =0.0.z
538538
if c.con.Minor() == 0 && v.Minor() > 0 {
539539
return false, fmt.Errorf("%s does not have same minor version as %s", v, c.orig)
540540
}

0 commit comments

Comments
 (0)