ax(ueps): fix tlvError comment to show type usage, not sentinel usage
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

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:
Claude 2026-04-02 08:25:01 +01:00
parent da9e0d3982
commit 40b57849ff
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -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) }