aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2011-02-10 13:48:14 -0500
committerAndrew Gerrand <adg@golang.org>2011-02-10 13:48:14 -0500
commit047cf3161e2c1801fd1ba7a67f3125d8136d7956 (patch)
treefb79b88dbd88957c1e6a1591e1e873edfa3dd041
parent44bcc1fcd9027025726021bfb04de591c4a65b63 (diff)
downloadgo-047cf3161e2c1801fd1ba7a67f3125d8136d7956.tar.gz
go-047cf3161e2c1801fd1ba7a67f3125d8136d7956.zip
json: correct Marshal documentation
Fixes #1488. R=r, rsc, rog CC=golang-dev https://golang.org/cl/4168043
-rw-r--r--src/pkg/json/encode.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pkg/json/encode.go b/src/pkg/json/encode.go
index 759b49dbeb..0fcc78aa80 100644
--- a/src/pkg/json/encode.go
+++ b/src/pkg/json/encode.go
@@ -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