Commit 10f7f80f authored by Christopher Wedgwood's avatar Christopher Wedgwood Committed by Russ Cox

json: update documentation to match current coding style

R=rsc
CC=golang-dev
https://golang.org/cl/888045
parent c9293f0c
...@@ -236,13 +236,13 @@ func (b *structBuilder) Key(k string) Builder { ...@@ -236,13 +236,13 @@ func (b *structBuilder) Key(k string) Builder {
// For example, given these definitions: // For example, given these definitions:
// //
// type Email struct { // type Email struct {
// Where string; // Where string
// Addr string; // Addr string
// } // }
// //
// type Result struct { // type Result struct {
// Name string; // Name string
// Phone string; // Phone string
// Email []Email // Email []Email
// } // }
// //
...@@ -272,8 +272,8 @@ func (b *structBuilder) Key(k string) Builder { ...@@ -272,8 +272,8 @@ func (b *structBuilder) Key(k string) Builder {
// "phone", // no phone given // "phone", // no phone given
// []Email{ // []Email{
// Email{ "home", "gre@example.com" }, // 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 // Note that the field r.Phone has not been modified and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment