mirror of
https://github.com/golang/go
synced 2024-11-24 15:20:03 -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:
|
||||
//
|
||||
// type Email struct {
|
||||
// Where string;
|
||||
// Addr string;
|
||||
// Where string
|
||||
// Addr string
|
||||
// }
|
||||
//
|
||||
// type Result struct {
|
||||
// Name string;
|
||||
// Phone string;
|
||||
// Name string
|
||||
// Phone string
|
||||
// Email []Email
|
||||
// }
|
||||
//
|
||||
@ -272,8 +272,8 @@ func (b *structBuilder) Key(k string) Builder {
|
||||
// "phone", // no phone given
|
||||
// []Email{
|
||||
// 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
|
||||
|
Loading…
Reference in New Issue
Block a user