From 75f24a9a18ba5412c7e485db8ed9c01cda3f44a5 Mon Sep 17 00:00:00 2001 From: imsk17 Date: Sun, 13 Oct 2024 20:22:27 +0530 Subject: [PATCH] fix(doc): CBORUnmarshal can throw different types of error --- cbor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbor.go b/cbor.go index 29e5e7d..abd506c 100644 --- a/cbor.go +++ b/cbor.go @@ -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