mirror of
https://github.com/golang/go
synced 2024-11-24 17:40:14 -07:00
json: update documentation to match current coding style
R=rsc CC=golang-dev https://golang.org/cl/888045
This commit is contained in:
parent
c9293f0cc7
commit
10f7f80fae
@ -236,13 +236,13 @@ func (b *structBuilder) Key(k string) Builder {
|
|||||||
// For example, given these definitions:
|
// For example, given these definitions:
|
||||||
//
|
//
|
||||||
// type Email struct {
|
// type Email struct {
|
||||||
// Where string;
|
// Where string
|
||||||
// Addr string;
|
// Addr string
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// type Result struct {
|
// type Result struct {
|
||||||
// Name string;
|
// Name string
|
||||||
// Phone string;
|
// Phone string
|
||||||
// Email []Email
|
// Email []Email
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
@ -272,8 +272,8 @@ func (b *structBuilder) Key(k string) Builder {
|
|||||||
// "phone", // no phone given
|
// "phone", // no phone given
|
||||||
// []Email{
|
// []Email{
|
||||||
// Email{ "home", "gre@example.com" },
|
// Email{ "home", "gre@example.com" },
|
||||||
// Email{ "work", "gre@work.com" }
|
// Email{ "work", "gre@work.com" },
|
||||||
// }
|
// },
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// Note that the field r.Phone has not been modified and
|
// Note that the field r.Phone has not been modified and
|
||||||
|
Loading…
Reference in New Issue
Block a user