Skip to content

Commit 1624c64

Browse files
gh-140065: Lexical analysis: Correct note about leading zeros in floating point numbers (GH-140066)
1 parent 728d239 commit 1624c64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/reference/lexical_analysis.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,8 +1308,8 @@ The parts are separated by a decimal point, ``.``::
13081308
2.71828
13091309
4.0
13101310

1311-
Unlike in integer literals, leading zeros are allowed in the numeric parts.
1312-
For example, ``077.010`` is legal, and denotes the same number as ``77.10``.
1311+
Unlike in integer literals, leading zeros are allowed.
1312+
For example, ``077.010`` is legal, and denotes the same number as ``77.01``.
13131313

13141314
As in integer literals, single underscores may occur between digits to help
13151315
readability::

0 commit comments

Comments
 (0)