Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
arshchimni authored and mattfarina committed Aug 9, 2022
1 parent 60f5303 commit b2d12cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion constraints.go
Expand Up @@ -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)
}
Expand Down

0 comments on commit b2d12cc

Please sign in to comment.