ax(ueps): replace fictional sentinel example with concrete package sentinel

AX Principle 2 — comments must show realistic usage with actual values from
the codebase, not placeholder examples. The sentinelError type comment used
errNotFound (a fictional variable) instead of errTLVValueTooLarge (the actual
sentinel declared on the next line).

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

View file

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