Fix incorrect documentation.

(Left over from copy-and-paste from Go's JSON encoder/decode doc.)
This commit is contained in:
Jack Palevich 2012-09-15 19:56:53 -07:00
parent 5c36da2622
commit 25c99088bf

View File

@ -490,9 +490,8 @@ func isValueNil(val reflect.Value) bool {
// Struct values encode as bencode maps. Each exported struct field // Struct values encode as bencode maps. Each exported struct field
// becomes a member of the object. // becomes a member of the object.
// The object's default key string is the struct field name // The object's default key string is the struct field name
// but can be specified in the struct field's tag value. The "json" key in // but can be specified in the struct field's tag value. The text of
// the struct field's tag value is the key name, followed by an optional comma // the struct field's tag value is the key name. Examples:
// and options. Examples:
// //
// // Field appears in bencode as key "Field". // // Field appears in bencode as key "Field".
// Field int // Field int