diff options
author | Christopher Wedgwood <cw@f00f.org> | 2010-04-11 22:09:34 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-04-11 22:09:34 -0700 |
commit | 10f7f80faea38ca3b84582dbb87338478a576834 (patch) | |
tree | 14ded8418a00a9f492de1e44a375c6249cbf66cd | |
parent | c9293f0cc7e049b3edb8a199983ac4d95ce249b2 (diff) | |
download | go-10f7f80faea38ca3b84582dbb87338478a576834.tar.gz go-10f7f80faea38ca3b84582dbb87338478a576834.zip |
json: update documentation to match current coding style
R=rsc
CC=golang-dev
https://golang.org/cl/888045
-rw-r--r-- | src/pkg/json/struct.go | 12 |
1 files changed, 6 insertions, 6 deletions
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 |