summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/typeobj.rst
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2019-06-20 03:32:24 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-06-20 03:32:23 (GMT)
commitbc5caf88ca19b4c8cb9bc912c832b4807a515a60 (patch)
treea834628280ed49bcad585df6498310faf325927d /Doc/c-api/typeobj.rst
parentaf41c567af81de7c4408e2e2617f1d3747408434 (diff)
downloadcpython-bc5caf88ca19b4c8cb9bc912c832b4807a515a60.zip
cpython-bc5caf88ca19b4c8cb9bc912c832b4807a515a60.tar.gz
cpython-bc5caf88ca19b4c8cb9bc912c832b4807a515a60.tar.bz2
bpo-37342: Fix the incorrect nb_index's type in typeobj documentation (GH-14241)
It was listed as `binaryfunc`. It should be `unaryfunc`.
Diffstat (limited to 'Doc/c-api/typeobj.rst')
-rw-r--r--Doc/c-api/typeobj.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst
index 83fcc5a..638fb0c 100644
--- a/Doc/c-api/typeobj.rst
+++ b/Doc/c-api/typeobj.rst
@@ -285,7 +285,7 @@ sub-slots
+---------------------------------------------------------+-----------------------------------+--------------+
| :c:member:`~PyNumberMethods.nb_inplace_true_divide` | :c:type:`binaryfunc` | __truediv__ |
+---------------------------------------------------------+-----------------------------------+--------------+
- | :c:member:`~PyNumberMethods.nb_index` | :c:type:`binaryfunc` | __index__ |
+ | :c:member:`~PyNumberMethods.nb_index` | :c:type:`unaryfunc` | __index__ |
+---------------------------------------------------------+-----------------------------------+--------------+
| :c:member:`~PyNumberMethods.nb_matrix_multiply` | :c:type:`binaryfunc` | __matmul__ |
| | | __rmatmul__ |