1
0
mirror of https://github.com/golang/go synced 2024-11-23 07:20:06 -07:00

strconv: using the built-in min/max function

Change-Id: Iab170943e6e80ffe08bb061e563c106b53740372
This commit is contained in:
qiulaidongfeng 2023-08-08 09:34:45 +08:00
parent d9f7e1dc73
commit 2964e03f1f

View File

@ -568,17 +568,3 @@ func fmtX(dst []byte, prec int, fmt byte, neg bool, mant uint64, exp int, flt *f
return dst
}
func min(a, b int) int {
if a < b {
return a
}
return b
}
func max(a, b int) int {
if a > b {
return a
}
return b
}