Skip to content

Commit 318b3d4

Browse files
committed
api/types/versions: rename max/min as it collides with go1.21 builtin
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent cb394a6 commit 318b3d4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

api/types/versions/compare.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ func compare(v1, v2 string) int {
1616
otherTab = strings.Split(v2, ".")
1717
)
1818

19-
max := len(currTab)
20-
if len(otherTab) > max {
21-
max = len(otherTab)
19+
maxVer := len(currTab)
20+
if len(otherTab) > maxVer {
21+
maxVer = len(otherTab)
2222
}
23-
for i := 0; i < max; i++ {
23+
for i := 0; i < maxVer; i++ {
2424
var currInt, otherInt int
2525

2626
if len(currTab) > i {

0 commit comments

Comments
 (0)