]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/json: fix docs on valid key names
authorDavid Glasser <glasser@meteor.com>
Tue, 31 May 2016 19:28:57 +0000 (12:28 -0700)
committerAndrew Gerrand <adg@golang.org>
Fri, 3 Jun 2016 00:40:59 +0000 (00:40 +0000)
This has been inaccurate since https://golang.org/cl/6048047.

Fixes #15317.

Change-Id: If93d2161f51ccb91912cb94a35318cf33f4d526a
Reviewed-on: https://go-review.googlesource.com/23691
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/encoding/json/encode.go

index 3917084dc3324ad5c57e206792cd5704bd12816b..d864022730417a51f2d4d4832fde5dcd4824c9d5 100644 (file)
@@ -90,8 +90,8 @@ import (
 //    Int64String int64 `json:",string"`
 //
 // The key name will be used if it's a non-empty string consisting of
-// only Unicode letters, digits, dollar signs, percent signs, hyphens,
-// underscores and slashes.
+// only Unicode letters, digits, and ASCII punctuation except quotation
+// marks, backslash, and comma.
 //
 // Anonymous struct fields are usually marshaled as if their inner exported fields
 // were fields in the outer struct, subject to the usual Go visibility rules amended