ax(ueps): replace prose errTLVValueTooLarge comment with usage example
Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
33659c311f
commit
0d9071d528
1 changed files with 2 additions and 1 deletions
|
|
@ -8,7 +8,8 @@ import (
|
|||
"io"
|
||||
)
|
||||
|
||||
// errTLVValueTooLarge is returned by writeTLV when a value exceeds the 1-byte length limit (255 bytes).
|
||||
// writeTLV(buf, TagPayload, oversized) → errTLVValueTooLarge
|
||||
// if errors.Is(err, errTLVValueTooLarge) { /* value exceeded 255-byte TLV length limit */ }
|
||||
var errTLVValueTooLarge = tlvError("TLV value too large for 1-byte length header")
|
||||
|
||||
// tlvError is a sentinel error type for TLV encoding violations.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue