Skip to content

Commit

Permalink
doc: remove incorrect space in %T and %v output examples
Browse files Browse the repository at this point in the history
Change-Id: I321890237f703b945711e59c15233ccf59c4f190
Reviewed-on: https://go-review.googlesource.com/c/156477
Run-TryBot: Gabriel Aszalos <gabriel.aszalos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
gbbr authored and bradfitz committed Jan 7, 2019
1 parent f7248ba commit 73fb3c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/effective_go.html
Expand Up @@ -1710,7 +1710,7 @@ <h3 id="printing">Printing</h3>
&amp;{7 -2.35 abc def}
&amp;{a:7 b:-2.35 c:abc def}
&amp;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}
</pre>
<p>
(Note the ampersands.)
Expand All @@ -1733,7 +1733,7 @@ <h3 id="printing">Printing</h3>
prints
</p>
<pre>
map[string] int
map[string]int
</pre>
<p>
If you want to control the default format for a custom type, all that's required is to define
Expand Down

0 comments on commit 73fb3c3

Please sign in to comment.