From fdbfbabe87f96e9c01c7718462aac8939e82ed74 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 12:55:51 +0100 Subject: [PATCH] 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 --- pkg/ueps/packet.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/ueps/packet.go b/pkg/ueps/packet.go index 081f267..ab62654 100644 --- a/pkg/ueps/packet.go +++ b/pkg/ueps/packet.go @@ -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) }