mirror of
https://github.com/golang/go
synced 2024-11-26 18:06:55 -07:00
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 <gabriel.aszalos@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
f7248ba753
commit
73fb3c38a6
@ -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}
|
||||
</pre>
|
||||
<p>
|
||||
(Note the ampersands.)
|
||||
@ -1733,7 +1733,7 @@ fmt.Printf("%T\n", timeZone)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user