mirror of
https://github.com/golang/go
synced 2024-11-23 10:20:03 -07:00
strconv: using the built-in min/max function
Change-Id: Iab170943e6e80ffe08bb061e563c106b53740372
This commit is contained in:
parent
d9f7e1dc73
commit
2964e03f1f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user