]> Cypherpunks repositories - gostls13.git/commitdiff
json: correct Marshal documentation
authorAndrew Gerrand <adg@golang.org>
Thu, 10 Feb 2011 18:48:14 +0000 (13:48 -0500)
committerAndrew Gerrand <adg@golang.org>
Thu, 10 Feb 2011 18:48:14 +0000 (13:48 -0500)
Fixes #1488.

R=r, rsc, rog
CC=golang-dev
https://golang.org/cl/4168043

src/pkg/json/encode.go

index 759b49dbeb4e02e033b41de1ef47f339f1f6c25a..0fcc78aa8087991b9fcf6b78db9c054949382095 100644 (file)
@@ -35,9 +35,8 @@ import (
 //
 // Struct values encode as JSON objects.  Each struct field becomes
 // a member of the object.  By default the object's key name is the
-// struct field name converted to lower case.  If the struct field
-// has a tag, that tag will be used as the name instead.
-// Only exported fields will be encoded.
+// struct field name.  If the struct field has a tag, that tag will 
+// be used as the name instead.  Only exported fields will be encoded.
 //
 // Map values encode as JSON objects.
 // The map's key type must be string; the object keys are used directly