diff options
| author | Tim Cooper <tim.cooper@layeh.com> | 2018-05-29 17:29:31 -0300 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-05-29 20:35:41 +0000 |
| commit | 555eb70db2f7ff4aa22768339425430c1dfdf6ac (patch) | |
| tree | 9718c1d25bd3335ba09bfa7ad926874074c3fb49 /src/math | |
| parent | 39888635acd8fb7d54d1bec41262cf5861a5ebfd (diff) | |
| download | go-555eb70db2f7ff4aa22768339425430c1dfdf6ac.tar.xz | |
all: regenerate stringer files
Change-Id: I34838320047792c4719837591e848b87ccb7f5ab
Reviewed-on: https://go-review.googlesource.com/115058
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/math')
| -rw-r--r-- | src/math/big/accuracy_string.go | 8 | ||||
| -rw-r--r-- | src/math/big/roundingmode_string.go | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/math/big/accuracy_string.go b/src/math/big/accuracy_string.go index 24ef7f1077..1501ace00d 100644 --- a/src/math/big/accuracy_string.go +++ b/src/math/big/accuracy_string.go @@ -1,8 +1,8 @@ -// generated by stringer -type=Accuracy; DO NOT EDIT +// Code generated by "stringer -type=Accuracy"; DO NOT EDIT. package big -import "fmt" +import "strconv" const _Accuracy_name = "BelowExactAbove" @@ -10,8 +10,8 @@ var _Accuracy_index = [...]uint8{0, 5, 10, 15} func (i Accuracy) String() string { i -= -1 - if i < 0 || i+1 >= Accuracy(len(_Accuracy_index)) { - return fmt.Sprintf("Accuracy(%d)", i+-1) + if i < 0 || i >= Accuracy(len(_Accuracy_index)-1) { + return "Accuracy(" + strconv.FormatInt(int64(i+-1), 10) + ")" } return _Accuracy_name[_Accuracy_index[i]:_Accuracy_index[i+1]] } diff --git a/src/math/big/roundingmode_string.go b/src/math/big/roundingmode_string.go index 05024b8065..c7629eb98b 100644 --- a/src/math/big/roundingmode_string.go +++ b/src/math/big/roundingmode_string.go @@ -1,16 +1,16 @@ -// generated by stringer -type=RoundingMode; DO NOT EDIT +// Code generated by "stringer -type=RoundingMode"; DO NOT EDIT. package big -import "fmt" +import "strconv" const _RoundingMode_name = "ToNearestEvenToNearestAwayToZeroAwayFromZeroToNegativeInfToPositiveInf" var _RoundingMode_index = [...]uint8{0, 13, 26, 32, 44, 57, 70} func (i RoundingMode) String() string { - if i+1 >= RoundingMode(len(_RoundingMode_index)) { - return fmt.Sprintf("RoundingMode(%d)", i) + if i >= RoundingMode(len(_RoundingMode_index)-1) { + return "RoundingMode(" + strconv.FormatInt(int64(i), 10) + ")" } return _RoundingMode_name[_RoundingMode_index[i]:_RoundingMode_index[i+1]] } |
