1
0
mirror of https://github.com/golang/go synced 2024-11-24 12:50:11 -07:00

json: correct Marshal documentation

Fixes #1488.

R=r, rsc, rog
CC=golang-dev
https://golang.org/cl/4168043
This commit is contained in:
Andrew Gerrand 2011-02-10 13:48:14 -05:00
parent 44bcc1fcd9
commit 047cf3161e

View File

@ -35,9 +35,8 @@ import (
// //
// Struct values encode as JSON objects. Each struct field becomes // Struct values encode as JSON objects. Each struct field becomes
// a member of the object. By default the object's key name is the // 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 // struct field name. If the struct field has a tag, that tag will
// has a tag, that tag will be used as the name instead. // be used as the name instead. Only exported fields will be encoded.
// Only exported fields will be encoded.
// //
// Map values encode as JSON objects. // Map values encode as JSON objects.
// The map's key type must be string; the object keys are used directly // The map's key type must be string; the object keys are used directly