ax(ueps): fix tlvError comment to show type usage, not sentinel usage
The comment was a duplicate of errTLVValueTooLarge's example. Fixed to show how tlvError defines new sentinels. Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
da9e0d3982
commit
40b57849ff
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ import (
|
|||
// if errors.Is(err, errTLVValueTooLarge) { /* value exceeded 255-byte TLV length limit */ }
|
||||
var errTLVValueTooLarge = tlvError("TLV value too large for 1-byte length header")
|
||||
|
||||
// writeTLV(buf, TagPayload, oversized) → errTLVValueTooLarge
|
||||
// var errMyError = tlvError("my error message")
|
||||
type tlvError string
|
||||
|
||||
func (e tlvError) Error() string { return string(e) }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue