diff options
Diffstat (limited to 'decode.go')
-rw-r--r-- | decode.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() { |