]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update floatingpoint.rst (#110509)
authorzipperer <47086307+zipperer@users.noreply.github.com>
Sun, 8 Oct 2023 00:07:36 +0000 (19:07 -0500)
committerGitHub <noreply@github.com>
Sun, 8 Oct 2023 00:07:36 +0000 (17:07 -0700)
This commit removes a ':'. I believe the extra colon causes a display error.

What I believe to be an error:
Above this expression
`round(math.pi, ndigits=2) == round(22 / 7, ndigits=2)`
the page displays `.. doctest::`.

What I observed:
After I remove the extra colon, the page does not display `.. doctest::`

Doc/tutorial/floatingpoint.rst

index b88055a41fd1ff1d0c9d799af4e86f9c73648731..30f3dfb6b238b4a571dbf69f66e9e045a00560a9 100644 (file)
@@ -137,7 +137,7 @@ the :func:`math.isclose` function can be useful for comparing inexact values:
    True
 
 Alternatively, the :func:`round` function can be used to compare rough
-approximations::
+approximations:
 
 .. doctest::