ax(ueps): add usage-example comment to sentinelError type

sentinelError had no comment, violating AX Principle 2 (comments as
usage examples). Added a concrete call-site example showing sentinel
identity comparison pattern.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 12:55:51 +01:00
parent cd8d17cc78
commit fdbfbabe87
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -12,6 +12,8 @@ import (
// if err == errTLVValueTooLarge { /* value exceeded 255-byte TLV length limit */ }
var errTLVValueTooLarge = sentinelError("TLV value too large for 1-byte length header")
// var errNotFound = sentinelError("thing not found")
// if err == errNotFound { /* exact sentinel identity preserved across returns */ }
type sentinelError string
func (sentinelErrorValue sentinelError) Error() string { return string(sentinelErrorValue) }