From 889b77fbd617217be4550ad79f045f811ee4c70a Mon Sep 17 00:00:00 2001 From: Christopher Wedgwood Date: Sun, 11 Apr 2010 22:09:34 -0700 Subject: json: update documentation to match current coding style R=rsc CC=golang-dev http://codereview.appspot.com/888045 Committer: Russ Cox --- src/pkg/json/struct.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/pkg/json/struct.go') diff --git a/src/pkg/json/struct.go b/src/pkg/json/struct.go index b89ef29a8..9be89cbd6 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 -- cgit v1.2.3