1
0
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:
Christopher Wedgwood 2010-04-11 22:09:34 -07:00 committed by Russ Cox
parent c9293f0cc7
commit 10f7f80fae

View File

@ -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