From a84d99998442ff753fdca53ae560d0c8fc530656 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 13:09:47 +0100 Subject: [PATCH] ax(ueps): replace fictional sentinel example with concrete package sentinel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pkg/ueps/packet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ueps/packet.go b/pkg/ueps/packet.go index 1dce7a6..931a422 100644 --- a/pkg/ueps/packet.go +++ b/pkg/ueps/packet.go @@ -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"