Skip to content

Commit

Permalink
Update floatingpoint.rst (python#110509)
Browse files Browse the repository at this point in the history
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::`
  • Loading branch information
zipperer committed Oct 8, 2023
1 parent dd9d781 commit 8e56d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/tutorial/floatingpoint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand Down

0 comments on commit 8e56d55

Please sign in to comment.