solidity/docs/types
Aiman Baharna 392b1872b3 docs: Disallow decimal literals with trailing dots
Currently the documentation suggests that a decimal literal can omit the
fractional part [1]:

> Decimal fractional literals are formed by a `.` with at least one
> number on one side. Examples include `1.`, `.1` and `1.3`.

However, commit ac68710 (May 30, 2018) disallowed trailing dots that are
not followed by a number [2].

Using decimal literals of the form `1.` will actually result in a
`ParserError` and so the docs should no longer recommend this form.

[1] https://docs.soliditylang.org/en/v0.8.15/types.html#rational-and-integer-literals
[2] ac68710789
2022-06-22 17:19:12 +01:00
..
conversion.rst docs/ 2021-06-25 12:33:55 +02:00
mapping-types.rst Update mapping-types.rst 2022-03-23 17:15:17 -07:00
operator-precedence-table.rst Put the table with operator precedence in a separate file, included in both Operators and Cheatsheet 2022-06-14 14:41:41 +02:00
operators.rst Put the table with operator precedence in a separate file, included in both Operators and Cheatsheet 2022-06-14 14:41:41 +02:00
reference-types.rst Add warning comment to dangling references docs. 2022-06-15 14:52:37 +02:00
value-types.rst docs: Disallow decimal literals with trailing dots 2022-06-22 17:19:12 +01:00