]> Cypherpunks repositories - gostls13.git/commitdiff
json: update documentation to match current coding style
authorChristopher Wedgwood <cw@f00f.org>
Mon, 12 Apr 2010 05:09:34 +0000 (22:09 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 12 Apr 2010 05:09:34 +0000 (22:09 -0700)
R=rsc
CC=golang-dev
https://golang.org/cl/888045

src/pkg/json/struct.go

index b89ef29a8e6c505c6a0d44061a3b251cb81a994b..9be89cbd6f2cf7122bb55b4d98cb2742758370d4 100644 (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