summaryrefslogtreecommitdiffstats
path: root/Doc/library/math.rst
diff options
context:
space:
mode:
authorEric Appelt <eric.appelt@gmail.com>2018-03-10 08:44:12 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2018-03-10 08:44:12 (GMT)
commit308eab979d153f1ab934383dc08bc4546ced8b6c (patch)
treebcc19dd71a3f513ac3089198b4f395f0491bff94 /Doc/library/math.rst
parent10485ebd40669d3e17ab4f477c8c898543bcccd1 (diff)
downloadcpython-308eab979d153f1ab934383dc08bc4546ced8b6c.zip
cpython-308eab979d153f1ab934383dc08bc4546ced8b6c.tar.gz
cpython-308eab979d153f1ab934383dc08bc4546ced8b6c.tar.bz2
bpo-26701: Add documentation for __trunc__ (GH-6022)
`int` fails back to `__trunc__` is `__int__` isn't defined, so cover that in the docs.
Diffstat (limited to 'Doc/library/math.rst')
-rw-r--r--Doc/library/math.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index 55eb41b..33aec57 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -203,7 +203,7 @@ Number-theoretic and representation functions
Return the :class:`~numbers.Real` value *x* truncated to an
:class:`~numbers.Integral` (usually an integer). Delegates to
- ``x.__trunc__()``.
+ :meth:`x.__trunc__() <object.__trunc__>`.
Note that :func:`frexp` and :func:`modf` have a different call/return pattern