From ea020ff3de9482726ce7019ac43c1d301ce5e3de Mon Sep 17 00:00:00 2001 From: Alberto Donizetti Date: Tue, 21 Feb 2017 14:30:17 +0100 Subject: [PATCH] fmt: add short note about %g precision Fixes #18772 Change-Id: Ib5d9ffa0abd35b9d3ca83bac139aece0f3c9702d Reviewed-on: https://go-review.googlesource.com/37313 Reviewed-by: Rob Pike --- src/fmt/doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0