Fix incorrect documentation.
(Left over from copy-and-paste from Go's JSON encoder/decode doc.)
This commit is contained in:
parent
5c36da2622
commit
25c99088bf
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue