We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c186a73 commit 6c3459fCopy full SHA for 6c3459f
decimal.go
@@ -56,7 +56,7 @@ type shopspringDecimal interface {
56
}
57
58
// 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.
+// A nil/empty unscaled slice produces a NULL decimal.
60
func NewScaledDecimal(unscaled []byte, scale uint32) ScaledDecimal {
61
if len(unscaled) == 0 {
62
return NullDecimal()
0 commit comments