]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Update floatingpoint.rst (GH-110509) (#110513)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 8 Oct 2023 00:18:39 +0000 (17:18 -0700)
committerGitHub <noreply@github.com>
Sun, 8 Oct 2023 00:18:39 +0000 (00:18 +0000)
Update floatingpoint.rst (GH-110509)

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::`
(cherry picked from commit 8e56d551ceef37a307280bcc5303bf69ccc9f9c1)

Co-authored-by: zipperer <47086307+zipperer@users.noreply.github.com>
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::