]> Cypherpunks repositories - gostls13.git/commitdiff
strconv: adds missing comment to neg flag, formats comment on trunc flag
authorAdam Kisala <adam.kisala@gmail.com>
Sat, 15 Jul 2017 18:27:56 +0000 (19:27 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 15 Jul 2017 19:41:25 +0000 (19:41 +0000)
Change-Id: Ibdd57489543d57a24d1e3c41210abd9fbc930b8f
Reviewed-on: https://go-review.googlesource.com/48867
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/strconv/decimal.go

index 957acd989180de2811602ece16bc6a0175b6370e..b58001888e8002fb4bad8380d99abe43e37ed02c 100644 (file)
@@ -15,8 +15,8 @@ type decimal struct {
        d     [800]byte // digits, big-endian representation
        nd    int       // number of digits used
        dp    int       // decimal point
-       neg   bool
-       trunc bool // discarded nonzero digits beyond d[:nd]
+       neg   bool      // negative flag
+       trunc bool      // discarded nonzero digits beyond d[:nd]
 }
 
 func (a *decimal) String() string {