[Python-checkins] doc: remove a misleading statement. (GH-98093)

miss-islington webhook-mailer at python.org
Mon Oct 10 04:50:53 EDT 2022


https://github.com/python/cpython/commit/a2f728038e79bfc90fa30821ab11ef9b46a5a3fd
commit: a2f728038e79bfc90fa30821ab11ef9b46a5a3fd
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-10-10T01:50:26-07:00
summary:

doc: remove a misleading statement. (GH-98093)

(cherry picked from commit 571e23d99157ed7ad67ca2334a396fc9ddbe07ec)

Co-authored-by: Julien Palard <julien at palard.fr>

files:
M Doc/tutorial/introduction.rst

diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst
index ba0f47705297..558b1c3eec60 100644
--- a/Doc/tutorial/introduction.rst
+++ b/Doc/tutorial/introduction.rst
@@ -70,8 +70,8 @@ the ones with a fractional part (e.g. ``5.0``, ``1.6``) have type
 :class:`float`.  We will see more about numeric types later in the tutorial.
 
 Division (``/``) always returns a float.  To do :term:`floor division` and
-get an integer result (discarding any fractional result) you can use the ``//``
-operator; to calculate the remainder you can use ``%``::
+get an integer result you can use the ``//`` operator; to calculate
+the remainder you can use ``%``::
 
    >>> 17 / 3  # classic division returns a float
    5.666666666666667



More information about the Python-checkins mailing list