summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2015-05-27 12:08:38 -0700
committerRobert Griesemer <gri@golang.org>2015-05-27 22:02:02 +0000
commitacd82d5017a6d30781d7b8caa6033694353fa7a8 (patch)
tree36ddfa987b65cf9f356a7b19e7d7773deb868464
parent553f45a61e062abe1c3459adc288929fc8693746 (diff)
downloadgo-git-acd82d5017a6d30781d7b8caa6033694353fa7a8.tar.gz
strconv: minor internal comment fix
Change-Id: I590ac9e976d4044d1f4f280137ea9b38851a9fc2 Reviewed-on: https://go-review.googlesource.com/10424 Reviewed-by: Alan Donovan <adonovan@google.com>
-rw-r--r--src/strconv/ftoa.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/strconv/ftoa.go b/src/strconv/ftoa.go
index d59c78e493..468c37fafb 100644
--- a/src/strconv/ftoa.go
+++ b/src/strconv/ftoa.go
@@ -223,9 +223,8 @@ func formatDigits(dst []byte, shortest bool, neg bool, digs decimalSlice, prec i
return append(dst, '%', fmt)
}
-// Round d (= mant * 2^exp) to the shortest number of digits
-// that will let the original floating point value be precisely
-// reconstructed. Size is original floating point size (64 or 32).
+// roundShortest rounds d (= mant * 2^exp) to the shortest number of digits
+// that will let the original floating point value be precisely reconstructed.
func roundShortest(d *decimal, mant uint64, exp int, flt *floatInfo) {
// If mantissa is zero, the number is zero; stop now.
if mant == 0 {