From e65057e8af9f1588c00d486ec8dc55e10c71e2f5 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 08:37:35 +0100 Subject: [PATCH] =?UTF-8?q?ax(ueps):=20rename=20buf=E2=86=92buffer=20in=20?= =?UTF-8?q?usage=20example=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Abbreviated names in comments teach agents bad patterns. AX Principle 1 applies to usage examples too. Co-Authored-By: Charon --- pkg/ueps/packet.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/ueps/packet.go b/pkg/ueps/packet.go index f6111f3..752b993 100644 --- a/pkg/ueps/packet.go +++ b/pkg/ueps/packet.go @@ -8,7 +8,7 @@ import ( "io" ) -// writeTLV(buf, TagPayload, oversized) → errTLVValueTooLarge +// writeTLV(buffer, 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") @@ -107,8 +107,8 @@ func (builder *PacketBuilder) MarshalAndSign(sharedSecret []byte) ([]byte, error return buffer.Bytes(), nil } -// writeTLV(buf, TagVersion, []byte{0x09}) -// writeTLV(buf, TagIntent, []byte{intentID}) +// writeTLV(buffer, TagVersion, []byte{0x09}) +// writeTLV(buffer, TagIntent, []byte{intentID}) func writeTLV(writer io.Writer, tag uint8, value []byte) error { // Check strict length constraint (1 byte length = max 255 bytes) if len(value) > 255 {