]> Cypherpunks repositories - gostls13.git/commitdiff
fmt: add short note about %g precision
authorAlberto Donizetti <alb.donizetti@gmail.com>
Tue, 21 Feb 2017 13:30:17 +0000 (14:30 +0100)
committerRob Pike <r@golang.org>
Tue, 21 Feb 2017 19:02:43 +0000 (19:02 +0000)
Fixes #18772

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

index f0ac448d642114c7c3a382e0b1e2d3726698d2c0..4b668f38db71406f8871a1ee699b9e8d04f7a469 100644 (file)
@@ -38,7 +38,7 @@
                %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
+               %g      %e for large exponents, %f otherwise. Precision is discussed below.
                %G      %E for large exponents, %F otherwise
        String and slice of bytes (treated equivalently with these verbs):
                %s      the uninterpreted bytes of the string or slice