diff --git a/constraints.go b/constraints.go index 4926c3f..b7dd045 100644 --- a/constraints.go +++ b/constraints.go @@ -534,7 +534,7 @@ func constraintCaret(v *Version, c *constraint) (bool, error) { } 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) } - // ^ when the minor is 0 and minor > 0 is >=0.y.z < 0.y+1 + // ^ when the minor is 0 and minor > 0 is =0.0.z if c.con.Minor() == 0 && v.Minor() > 0 { return false, fmt.Errorf("%s does not have same minor version as %s", v, c.orig) }