]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/json: mention that the "string" tag applies to booleans
authorAndrew Gerrand <adg@golang.org>
Sun, 14 Dec 2014 22:30:53 +0000 (09:30 +1100)
committerAndrew Gerrand <adg@golang.org>
Sun, 14 Dec 2014 23:24:54 +0000 (23:24 +0000)
Fixes #9284

Change-Id: I0410a9ed82b861686a0a986c9ca4eeeacac8f296
Reviewed-on: https://go-review.googlesource.com/1534
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/encoding/json/encode.go

index fca2a0980b2a36a30e8d80f79e1261088acea4c8..e59a0b3bbfd0a9d49d607fee91bd15739ad9b59d 100644 (file)
@@ -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"`
 //