]> Cypherpunks repositories - gostls13.git/commitdiff
fmt: fix scientific notation in docs
authorShenghou Ma <minux@golang.org>
Wed, 26 Aug 2015 21:52:13 +0000 (17:52 -0400)
committerMinux Ma <minux@golang.org>
Mon, 31 Aug 2015 18:43:00 +0000 (18:43 +0000)
Fixes #12340.

Change-Id: I17a8b3711a8593ec60882a0dcadb38f0cc138f4b
Reviewed-on: https://go-review.googlesource.com/13949
Reviewed-by: Rob Pike <r@golang.org>
src/fmt/doc.go

index ef91368ef0849dcc20f03f58cfa0ab7dfc605ec5..20a09c5f5b341532d3824849c8971b3c6042acc2 100644 (file)
@@ -34,8 +34,8 @@
                %b      decimalless scientific notation with exponent a power of two,
                        in the manner of strconv.FormatFloat with the 'b' format,
                        e.g. -123456p-78
-               %e      scientific notation, e.g. -1234.456e+78
-               %E      scientific notation, e.g. -1234.456E+78
+               %e      scientific notation, e.g. -1.234456e+78
+               %E      scientific notation, e.g. -1.234456E+78
                %f      decimal point but no exponent, e.g. 123.456
                %F      synonym for %f
                %g      %e for large exponents, %f otherwise