diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-09-28 20:40:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 20:40:57 (GMT) |
commit | 4f05f15d7b25ef8b690cb94fdc4c8cb5521a4e27 (patch) | |
tree | da653177934ecf5a2dc4a6c5efa3e25452ead2b7 /Doc/library/functions.rst | |
parent | 0c50b8c0b8274d54d6b71ed7bd21057d3642f138 (diff) | |
download | cpython-4f05f15d7b25ef8b690cb94fdc4c8cb5521a4e27.zip cpython-4f05f15d7b25ef8b690cb94fdc4c8cb5521a4e27.tar.gz cpython-4f05f15d7b25ef8b690cb94fdc4c8cb5521a4e27.tar.bz2 |
[docs] Improve the markup of powers (GH-28598)
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r-- | Doc/library/functions.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 19d67e9..a651d88 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1345,8 +1345,8 @@ are always available. They are listed here in alphabetical order. coercion rules for binary arithmetic operators apply. For :class:`int` operands, the result has the same type as the operands (after coercion) unless the second argument is negative; in that case, all arguments are - converted to float and a float result is delivered. For example, ``10**2`` - returns ``100``, but ``10**-2`` returns ``0.01``. + converted to float and a float result is delivered. For example, ``pow(10, 2)`` + returns ``100``, but ``pow(10, -2)`` returns ``0.01``. For :class:`int` operands *base* and *exp*, if *mod* is present, *mod* must also be of integer type and *mod* must be nonzero. If *mod* is present and |