ax(ueps): replace duplicate usage comment on sentinelError type

The comment on `sentinelError` restated the `errTLVValueTooLarge`
declaration directly above it (AX principle 2 violation). Replaced
with a distinct concrete example showing how to define any sentinel
of this type.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 13:10:42 +01:00
parent a84d999984
commit 413d735abf
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -12,8 +12,7 @@ import (
// if err == errTLVValueTooLarge { /* value exceeded 255-byte TLV length limit */ }
var errTLVValueTooLarge = sentinelError("TLV value too large for 1-byte length header")
// var errTLVValueTooLarge = sentinelError("TLV value too large for 1-byte length header")
// if err == errTLVValueTooLarge { /* value exceeded 255-byte TLV length limit */ }
// var errNotFound = sentinelError("record not found"); if err == errNotFound { /* handle */ }
type sentinelError string
// var e sentinelError = "thing not found"; e.Error() == "thing not found"