aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kisala <adam.kisala@gmail.com>2017-07-15 19:27:56 +0100
committerBrad Fitzpatrick <bradfitz@golang.org>2017-07-15 19:41:25 +0000
commit8cb40fa4215c736aed011fe8b580ade7150acffa (patch)
tree7c88d2d742083dea71c5b1a8bc3629cb429f292e
parent0a633c3bbef4764ab486a0cb0ba154c5db099eac (diff)
downloadgo-8cb40fa4215c736aed011fe8b580ade7150acffa.tar.gz
go-8cb40fa4215c736aed011fe8b580ade7150acffa.zip
strconv: adds missing comment to neg flag, formats comment on trunc flag
Change-Id: Ibdd57489543d57a24d1e3c41210abd9fbc930b8f Reviewed-on: https://go-review.googlesource.com/48867 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r--src/strconv/decimal.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strconv/decimal.go b/src/strconv/decimal.go
index 957acd9891..b58001888e 100644
--- a/src/strconv/decimal.go
+++ b/src/strconv/decimal.go
@@ -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 {