summaryrefslogtreecommitdiff
path: root/decode.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-10 19:58:52 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-10 21:44:42 -0700
commit0ce1d3e727ea347c3588f96be8a356fa6ea3bc0e (patch)
tree814b6a2d689fdba1266f59cf3a19079d1b99f354 /decode.go
parente9f3bdc767027d134a072e09f16bcccac75fa59f (diff)
tree-wide: Update various references from Go 1.18 to Go 1.20
Diffstat (limited to 'decode.go')
-rw-r--r--decode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/decode.go b/decode.go
index 487bce4..1b6bdf2 100644
--- a/decode.go
+++ b/decode.go
@@ -232,7 +232,7 @@ func (dec *Decoder) DecodeThenEOF(ptr any) (err error) {
// json.Unmarshaler interface it also checks for the Decodable
// interface.
//
-// [documentation for encoding/json.Unmarshal]: https://pkg.go.dev/encoding/json@go1.18#Unmarshal
+// [documentation for encoding/json.Unmarshal]: https://pkg.go.dev/encoding/json@go1.20#Unmarshal
func (dec *Decoder) Decode(ptr any) (err error) {
ptrVal := reflect.ValueOf(ptr)
if ptrVal.Kind() != reflect.Pointer || ptrVal.IsNil() || !ptrVal.Elem().CanSet() {