Fix typo in error message uint32 -> uint16
This commit is contained in:
committed by
Jack Christensen
parent
19039e6dd1
commit
9ae852eb58
+1
-1
@@ -262,7 +262,7 @@ func int64AssignTo(srcVal int64, srcValid bool, dst any) error {
|
||||
*v = uint8(srcVal)
|
||||
case *uint16:
|
||||
if srcVal < 0 {
|
||||
return fmt.Errorf("%d is less than zero for uint32", srcVal)
|
||||
return fmt.Errorf("%d is less than zero for uint16", srcVal)
|
||||
} else if srcVal > math.MaxUint16 {
|
||||
return fmt.Errorf("%d is greater than maximum value for uint16", srcVal)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user