From: Christopher Wedgwood Date: Mon, 12 Apr 2010 05:09:34 +0000 (-0700) Subject: json: update documentation to match current coding style X-Git-Tag: weekly.2010-04-13~14 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=10f7f80faea38ca3b84582dbb87338478a576834;p=gostls13.git json: update documentation to match current coding style R=rsc CC=golang-dev https://golang.org/cl/888045 --- diff --git a/src/pkg/json/struct.go b/src/pkg/json/struct.go index b89ef29a8e..9be89cbd6f 100644 --- a/src/pkg/json/struct.go +++ b/src/pkg/json/struct.go @@ -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