Skip to content

Commit

Permalink
Fix typo in error message uint32 -> uint16
Browse files Browse the repository at this point in the history
  • Loading branch information
sergej-brazdeikis authored and jackc committed Mar 11, 2023
1 parent 6765276 commit ca015ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func int64AssignTo(srcVal int64, srcStatus Status, dst interface{}) 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)
}
Expand Down

0 comments on commit ca015ef

Please sign in to comment.