Skip to content

Commit 6c3459f

Browse files
committed
docs: clarify comment on NewScaledDecimal regarding nil/empty unscaled slice
1 parent c186a73 commit 6c3459f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

decimal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type shopspringDecimal interface {
5656
}
5757

5858
// NewScaledDecimal constructs a decimal from a two's complement big-endian unscaled value and a scale.
59-
// A nil unscaled slice produces a NULL decimal.
59+
// A nil/empty unscaled slice produces a NULL decimal.
6060
func NewScaledDecimal(unscaled []byte, scale uint32) ScaledDecimal {
6161
if len(unscaled) == 0 {
6262
return NullDecimal()

0 commit comments

Comments
 (0)