aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/jsontext/doc.go
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2025-06-21 10:51:08 -0700
committerJoseph Tsai <joetsai@digital-static.net>2025-06-23 15:35:18 -0700
commit4506796a6ebee9799dd6272c0fb12c7b993631e2 (patch)
treecccbc0d7ba6c850aa45b8d1a29be1f97181d8e4a /src/encoding/json/jsontext/doc.go
parent456a90aa1618a6c3aa49ecba46969128e2bfa26f (diff)
downloadgo-4506796a6ebee9799dd6272c0fb12c7b993631e2.tar.xz
encoding/json/jsontext: consistently use JSON terminology
RFC 8259, section 2 uses the term "begin-array" amd "begin-object" rather than "start array" or "start object". Be consistent in our documentation. Change-Id: I172eb354c5e64b84c74bd662b1e581424e719a32 Reviewed-on: https://go-review.googlesource.com/c/go/+/683155 Auto-Submit: Joseph Tsai <joetsai@digital-static.net> Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Diffstat (limited to 'src/encoding/json/jsontext/doc.go')
-rw-r--r--src/encoding/json/jsontext/doc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encoding/json/jsontext/doc.go b/src/encoding/json/jsontext/doc.go
index 20ef5271d7..8e4bced015 100644
--- a/src/encoding/json/jsontext/doc.go
+++ b/src/encoding/json/jsontext/doc.go
@@ -25,8 +25,8 @@
// - a JSON literal (i.e., null, true, or false)
// - a JSON string (e.g., "hello, world!")
// - a JSON number (e.g., 123.456)
-// - a start or end delimiter for a JSON object (i.e., '{' or '}')
-// - a start or end delimiter for a JSON array (i.e., '[' or ']')
+// - a begin or end delimiter for a JSON object (i.e., '{' or '}')
+// - a begin or end delimiter for a JSON array (i.e., '[' or ']')
//
// A JSON token is represented by the [Token] type in Go. Technically,
// there are two additional structural characters (i.e., ':' and ','),