From 73fb3c38a685158591503a3d760ae6e1d1a2a565 Mon Sep 17 00:00:00 2001 From: Gabriel Aszalos Date: Mon, 7 Jan 2019 09:48:39 +0100 Subject: [PATCH] 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 --- doc/effective_go.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.50.0