diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-10-08 00:18:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-08 00:18:39 (GMT) |
commit | 96e42d2f8d1fbc1c15ee02aab17ee209174d4b39 (patch) | |
tree | 800aab4a2e50132e1f054bc79d74c27cde330801 | |
parent | 481aa7a40fdc43c18e1be210dbe21c6f227ee339 (diff) | |
download | cpython-96e42d2f8d1fbc1c15ee02aab17ee209174d4b39.zip cpython-96e42d2f8d1fbc1c15ee02aab17ee209174d4b39.tar.gz cpython-96e42d2f8d1fbc1c15ee02aab17ee209174d4b39.tar.bz2 |
[3.12] Update floatingpoint.rst (GH-110509) (#110513)
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>
-rw-r--r-- | Doc/tutorial/floatingpoint.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/floatingpoint.rst b/Doc/tutorial/floatingpoint.rst index b88055a..30f3dfb 100644 --- a/Doc/tutorial/floatingpoint.rst +++ b/Doc/tutorial/floatingpoint.rst @@ -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:: |