]> Cypherpunks repositories - gostls13.git/commit
encoding/json: declare hex as a const
authorJes Cok <xigua67damn@gmail.com>
Mon, 14 Aug 2023 11:53:26 +0000 (11:53 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 14 Aug 2023 21:26:16 +0000 (21:26 +0000)
commit36dc84ca5738e5aa03814dba4c439a0d823a1fa9
tree60be3842eb7dcd4b520b304babaab09836e48ed2
parent6d5ea923a2e3006c032d6b959e63f76d43ac2c74
encoding/json: declare hex as a const

hex is in fact immutable, declare it as a const to avoid accidental
modification, also for consistency with other packages.

Change-Id: I99f292e98c82d4c4526e46c9897d154d0c073da5
GitHub-Last-Rev: d2f06965e7e03df470d8c3c8882619187abf1609
GitHub-Pull-Request: golang/go#62011
Reviewed-on: https://go-review.googlesource.com/c/go/+/519155
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/encoding/json/encode.go