From 4fa95f91ffe58a2bc0cc7f1f50ee2de3d3b6ce8a Mon Sep 17 00:00:00 2001 From: walle250ai Date: Wed, 29 Apr 2026 21:30:31 +0800 Subject: [PATCH] Fix incorrect comment for ToUint8E Comment said 'uint type' but should say 'uint8 type', consistent with ToUint16E, ToUint32E, ToUint64E. --- number.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/number.go b/number.go index a58dc4d..de17c8f 100644 --- a/number.go +++ b/number.go @@ -499,7 +499,7 @@ func ToUint16E(i any) (uint16, error) { return toUnsignedNumberE[uint16](i, parseUint[uint16]) } -// ToUint8E casts an interface to a uint type. +// ToUint8E casts an interface to a uint8 type. func ToUint8E(i any) (uint8, error) { return toUnsignedNumberE[uint8](i, parseUint[uint8]) }