Skip to content

Commit 046423f

Browse files
authored
Merge pull request #13191 from aiman/doc-decimal-literal-trailing-dots
docs: Disallow decimal literals with trailing dots
2 parents 3ed9a38 + 392b187 commit 046423f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/types/value-types.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@ Integer literals are formed from a sequence of digits in the range 0-9.
448448
They are interpreted as decimals. For example, ``69`` means sixty nine.
449449
Octal literals do not exist in Solidity and leading zeros are invalid.
450450

451-
Decimal fractional literals are formed by a ``.`` with at least one number on
452-
one side. Examples include ``1.``, ``.1`` and ``1.3``.
451+
Decimal fractional literals are formed by a ``.`` with at least one number after the decimal point.
452+
Examples include ``.1`` and ``1.3`` (but not ``1.``).
453453

454454
Scientific notation in the form of ``2e10`` is also supported, where the
455455
mantissa can be fractional but the exponent has to be an integer.

0 commit comments

Comments
 (0)