]> Cypherpunks.ru repositories - gostls13.git/commitdiff
math/big: using the min built-in function
authorqiulaidongfeng <2645477756@qq.com>
Thu, 10 Aug 2023 02:01:04 +0000 (02:01 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 11 Aug 2023 02:52:49 +0000 (02:52 +0000)
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 <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/math/big/ftoa.go

index 5506e6e4257c50a1f93f3e774398c5ae36b08bd0..6daea344964f4014787d6f3607ad2e014f3605ed 100644 (file)
@@ -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