Skip to content

Commit

Permalink
Merge pull request #448 from benluddy/doc-unmarshal-unrecognized-tag-…
Browse files Browse the repository at this point in the history
…to-empty-interface

Document behavior of Unmarshal of unrecognized tags into interface{}
  • Loading branch information
fxamacker authored Dec 8, 2023
2 parents 6bbaf8b + 18b6e98 commit a1d4c29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import (
// CBOR null and undefined values decode to nil.
// CBOR times (tag 0 and 1) decode to time.Time.
// CBOR bignums (tag 2 and 3) decode to big.Int.
// CBOR tags with an unrecognized number decode to cbor.Tag
//
// To unmarshal a CBOR array into a slice, Unmarshal allocates a new slice
// if the CBOR array is empty or slice capacity is less than CBOR array length.
Expand Down

0 comments on commit a1d4c29

Please sign in to comment.