From: Gabriel Aszalos Date: Mon, 7 Jan 2019 08:48:39 +0000 (+0100) Subject: doc: remove incorrect space in %T and %v output examples X-Git-Tag: go1.12beta2~29 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=73fb3c38a685158591503a3d760ae6e1d1a2a565;p=gostls13.git doc: remove incorrect space in %T and %v output examples Change-Id: I321890237f703b945711e59c15233ccf59c4f190 Reviewed-on: https://go-review.googlesource.com/c/156477 Run-TryBot: Gabriel Aszalos TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/doc/effective_go.html b/doc/effective_go.html index ddfea76d43..34131868a4 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -1710,7 +1710,7 @@ prints &{7 -2.35 abc def} &{a:7 b:-2.35 c:abc def} &main.T{a:7, b:-2.35, c:"abc\tdef"} -map[string] int{"CST":-21600, "PST":-28800, "EST":-18000, "UTC":0, "MST":-25200} +map[string]int{"CST":-21600, "PST":-28800, "EST":-18000, "UTC":0, "MST":-25200}

(Note the ampersands.) @@ -1733,7 +1733,7 @@ fmt.Printf("%T\n", timeZone) prints

-map[string] int
+map[string]int
 

If you want to control the default format for a custom type, all that's required is to define