From 0d9071d528fdbd103e764fd2f580be992e5bd087 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 08:20:47 +0100 Subject: [PATCH] ax(ueps): replace prose errTLVValueTooLarge comment with usage example Co-Authored-By: Charon --- pkg/ueps/packet.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/ueps/packet.go b/pkg/ueps/packet.go index dc61b62..eb81bd7 100644 --- a/pkg/ueps/packet.go +++ b/pkg/ueps/packet.go @@ -8,7 +8,8 @@ import ( "io" ) -// errTLVValueTooLarge is returned by writeTLV when a value exceeds the 1-byte length limit (255 bytes). +// writeTLV(buf, TagPayload, oversized) → errTLVValueTooLarge +// if errors.Is(err, errTLVValueTooLarge) { /* value exceeded 255-byte TLV length limit */ } var errTLVValueTooLarge = tlvError("TLV value too large for 1-byte length header") // tlvError is a sentinel error type for TLV encoding violations.