We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2e697e commit a1c3981Copy full SHA for a1c3981
decimal.go
@@ -385,9 +385,6 @@ func validateDecimalText(text string) error {
385
if i != length {
386
return fmt.Errorf("decimal literal has trailing characters")
387
}
388
- if digits == 0 && !seenDot {
389
- return fmt.Errorf("decimal literal missing mantissa digits")
390
- }
391
return nil
392
default:
393
return fmt.Errorf("decimal literal contains invalid character %q", ch)
0 commit comments