summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-08-22 12:50:30 (GMT)
committerGitHub <noreply@github.com>2023-08-22 12:50:30 (GMT)
commitd7202e4879bf4e7e00a69500ddcb3143864139b4 (patch)
tree9f1c6a1ab8efff6c1ab9ee4c003d04e2950e3508 /Doc/extending
parentc556f9a3c9af48c9af9e1f298be638553a6c886e (diff)
downloadcpython-d7202e4879bf4e7e00a69500ddcb3143864139b4.zip
cpython-d7202e4879bf4e7e00a69500ddcb3143864139b4.tar.gz
cpython-d7202e4879bf4e7e00a69500ddcb3143864139b4.tar.bz2
gh-107298: Fix numerous ref errors and typos in the C API docs (GH-108258)
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/newtypes.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
index 386b3c8..9f166eb 100644
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -298,7 +298,7 @@ have an associated doc string simply by providing the text in the table. An
application can use the introspection API to retrieve the descriptor from the
class object, and get the doc string using its :attr:`__doc__` attribute.
-As with the :c:member:`~PyTypeObject.tp_methods` table, a sentinel entry with a :c:member:`~PyMethodDef.name` value
+As with the :c:member:`~PyTypeObject.tp_methods` table, a sentinel entry with a :c:member:`~PyMethodDef.ml_name` value
of ``NULL`` is required.
.. XXX Descriptors need to be explained in more detail somewhere, but not here.