diff options
| author | Andrew Gerrand <adg@golang.org> | 2014-12-15 09:30:53 +1100 |
|---|---|---|
| committer | Andrew Gerrand <adg@golang.org> | 2014-12-14 23:24:54 +0000 |
| commit | 9b71417495b8fe4ef4b2a30855a4cf32bf947a4d (patch) | |
| tree | 3166fa018846d19c6b5bc1ebcc4cce0128656c12 /src/encoding/json/encode.go | |
| parent | 2d02ff278cb8b339df239f5706d2b5b13917e302 (diff) | |
| download | go-9b71417495b8fe4ef4b2a30855a4cf32bf947a4d.tar.xz | |
encoding/json: mention that the "string" tag applies to booleans
Fixes #9284
Change-Id: I0410a9ed82b861686a0a986c9ca4eeeacac8f296
Reviewed-on: https://go-review.googlesource.com/1534
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/encoding/json/encode.go')
| -rw-r--r-- | src/encoding/json/encode.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encoding/json/encode.go b/src/encoding/json/encode.go index fca2a0980b..e59a0b3bbf 100644 --- a/src/encoding/json/encode.go +++ b/src/encoding/json/encode.go @@ -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"` // |
