summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-08-22 14:16:31 (GMT)
committerGitHub <noreply@github.com>2023-08-22 14:16:31 (GMT)
commite5d779c0e296ed6247d911231dad39c16dec0172 (patch)
treee5fe39ee7c53781244d358e33513206eb3d8880a /Doc/extending
parenta2b680d9e994973e7a5a53671e1a733882d29f28 (diff)
downloadcpython-e5d779c0e296ed6247d911231dad39c16dec0172.zip
cpython-e5d779c0e296ed6247d911231dad39c16dec0172.tar.gz
cpython-e5d779c0e296ed6247d911231dad39c16dec0172.tar.bz2
[3.12] gh-107298: Fix numerous ref errors and typos in the C API docs (GH-108258) (#108284)
gh-107298: Fix numerous ref errors and typos in the C API docs (GH-108258) (cherry picked from commit d7202e4879bf4e7e00a69500ddcb3143864139b4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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.