From: qiulaidongfeng <2645477756@qq.com> Date: Thu, 10 Aug 2023 02:01:04 +0000 (+0000) Subject: math/big: using the min built-in function X-Git-Tag: go1.22rc1~1331 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1d3a77e5e6548a4720e74c55bed0145b570f6287;p=gostls13.git math/big: using the min built-in function Change-Id: I9e95806116a8547ec782f66226d1b1382c6156de Change-Id: I9e95806116a8547ec782f66226d1b1382c6156de GitHub-Last-Rev: 5b4ce994c162775e91aa00c942571bc0ac8b1eca GitHub-Pull-Request: golang/go#61829 Reviewed-on: https://go-review.googlesource.com/c/go/+/516895 Auto-Submit: Ian Lance Taylor Reviewed-by: Michael Knyszek Run-TryBot: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor --- diff --git a/src/math/big/ftoa.go b/src/math/big/ftoa.go index 5506e6e425..6daea34496 100644 --- a/src/math/big/ftoa.go +++ b/src/math/big/ftoa.go @@ -444,13 +444,6 @@ func (x *Float) fmtP(buf []byte) []byte { return strconv.AppendInt(buf, int64(x.exp), 10) } -func min(x, y int) int { - if x < y { - return x - } - return y -} - var _ fmt.Formatter = &floatZero // *Float must implement fmt.Formatter // Format implements fmt.Formatter. It accepts all the regular