Skip to content

Commit 09203c1

Browse files
committed
trunc does use the special method, though
1 parent eaa4cc9 commit 09203c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/math.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Number-theoretic and representation functions
134134
.. function:: trunc(x)
135135

136136
Return the :class:`Real` value *x* truncated to an :class:`Integral` (usually
137-
a long integer).
137+
a long integer). Uses the ``__trunc__`` method.
138138

139139
.. versionadded:: 2.6
140140

0 commit comments

Comments
 (0)