Skip to content

Commit

Permalink
encoding/json: mention that the "string" tag applies to booleans
Browse files Browse the repository at this point in the history
Fixes golang#9284

Change-Id: I0410a9ed82b861686a0a986c9ca4eeeacac8f296
Reviewed-on: https://go-review.googlesource.com/1534
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
adg committed Dec 14, 2014
1 parent 2d02ff2 commit 9b71417
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/encoding/json/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ import (
//
// The "string" option signals that a field is stored as JSON inside a
// JSON-encoded string. It applies only to fields of string, floating point,
// or integer types. This extra level of encoding is sometimes used when
// communicating with JavaScript programs:
// integer, or boolean types. This extra level of encoding is sometimes used
// when communicating with JavaScript programs:
//
// Int64String int64 `json:",string"`
//
Expand Down

0 comments on commit 9b71417

Please sign in to comment.