]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43729: Clarify comment in tutorial example (GH-25191) (#26136)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 14 May 2021 20:06:09 +0000 (13:06 -0700)
committerGitHub <noreply@github.com>
Fri, 14 May 2021 20:06:09 +0000 (13:06 -0700)
(cherry picked from commit 07797121cc290ede0b3d3cf02068f3d993cddd15)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Doc/tutorial/introduction.rst

index 2a1666128a20155cb38e3fbdc3c255b7d38a31a6..4613cf76c530998b9d5f4dd1e7bfd4a2a8b2caf9 100644 (file)
@@ -73,7 +73,7 @@ operator; to calculate the remainder you can use ``%``::
    5
    >>> 17 % 3  # the % operator returns the remainder of the division
    2
-   >>> 5 * 3 + 2  # result * divisor + remainder
+   >>> 5 * 3 + 2  # floored quotient * divisor + remainder
    17
 
 With Python, it is possible to use the ``**`` operator to calculate powers [#]_::