1
0
mirror of https://github.com/golang/go synced 2024-11-23 08:40:08 -07:00

encoding/asn1: use nil instead of null in docs

This commit is contained in:
KimMachineGun 2020-09-29 19:01:55 +09:00
parent 730f556bec
commit c668b6e4ad

View File

@ -1036,7 +1036,7 @@ func setDefaultValue(v reflect.Value, params fieldParameters) (ok bool) {
// and uses the reflect package to fill in an arbitrary value pointed at by val.
// Because Unmarshal uses the reflect package, the structs
// being written to must use upper case field names. If val
// is null or not a pointer, Unmarshal returns an error.
// is nil or not a pointer, Unmarshal returns an error.
//
// After parsing b, any bytes that were leftover and not used to fill
// val will be returned in rest. When parsing a SEQUENCE into a struct,