summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorWei-Hsiang (Matt) Wang <mattwang44@gmail.com>2024-09-01 04:59:42 (GMT)
committerGitHub <noreply@github.com>2024-09-01 04:59:42 (GMT)
commitcf472577e24911cb70b619304c0108c7fba97cac (patch)
tree03690b3afa9e2db7fb3207fe7ebb1473f2344ca5 /Doc/extending
parent34ddb64d088dd7ccc321f6103d23153256caa5d4 (diff)
downloadcpython-cf472577e24911cb70b619304c0108c7fba97cac.zip
cpython-cf472577e24911cb70b619304c0108c7fba97cac.tar.gz
cpython-cf472577e24911cb70b619304c0108c7fba97cac.tar.bz2
gh-123517: Remove unnecessary ``:meth:`` parentheses (#123518)
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/newtypes_tutorial.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/extending/newtypes_tutorial.rst b/Doc/extending/newtypes_tutorial.rst
index 7eba975..b8f437f 100644
--- a/Doc/extending/newtypes_tutorial.rst
+++ b/Doc/extending/newtypes_tutorial.rst
@@ -447,7 +447,7 @@ Further, the attributes can be deleted, setting the C pointers to ``NULL``. Eve
though we can make sure the members are initialized to non-``NULL`` values, the
members can be set to ``NULL`` if the attributes are deleted.
-We define a single method, :meth:`!Custom.name()`, that outputs the objects name as the
+We define a single method, :meth:`!Custom.name`, that outputs the objects name as the
concatenation of the first and last names. ::
static PyObject *