Skip to content

Commit 48e36b7

Browse files
committed
Fixes golang#42570
encoding/ans1: add utf8 tag doc for Unmarshal method.
1 parent d7974c3 commit 48e36b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/encoding/asn1/asn1.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,7 @@ func setDefaultValue(v reflect.Value, params fieldParameters) (ok bool) {
10661066
// optional marks the field as ASN.1 OPTIONAL
10671067
// set causes a SET, rather than a SEQUENCE type to be expected
10681068
// tag:x specifies the ASN.1 tag number; implies ASN.1 CONTEXT SPECIFIC
1069+
// utf8: causes strings to be unmarshal as ASN.1, UTF8String values
10691070
//
10701071
// If the type of the first field of a structure is RawContent then the raw
10711072
// ASN1 contents of the struct will be stored in it.

0 commit comments

Comments
 (0)