Skip to content

Commit

Permalink
fix(doc): CBORUnmarshal can throw different types of error
Browse files Browse the repository at this point in the history
  • Loading branch information
imsk17 committed Oct 13, 2024
1 parent 85e3dd9 commit 75f24a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cbor.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ type CBORMarshal func(v any) ([]byte, error)

// CBORUnmarshal parses the CBOR-encoded data and stores the result
// in the value pointed to by v. If v is nil or not a pointer,
// Unmarshal returns an InvalidUnmarshalError.
// Unmarshal returns an error.
type CBORUnmarshal func(data []byte, v any) error

0 comments on commit 75f24a9

Please sign in to comment.