From: Alberto Donizetti Date: Tue, 21 Feb 2017 13:30:17 +0000 (+0100) Subject: fmt: add short note about %g precision X-Git-Tag: go1.9beta1~1479 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ea020ff3de9482726ce7019ac43c1d301ce5e3de;p=gostls13.git fmt: add short note about %g precision Fixes #18772 Change-Id: Ib5d9ffa0abd35b9d3ca83bac139aece0f3c9702d Reviewed-on: https://go-review.googlesource.com/37313 Reviewed-by: Rob Pike --- diff --git a/src/fmt/doc.go b/src/fmt/doc.go index f0ac448d64..4b668f38db 100644 --- a/src/fmt/doc.go +++ b/src/fmt/doc.go @@ -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