summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/2.5.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-07-27 05:52:54 (GMT)
committerGitHub <noreply@github.com>2023-07-27 05:52:54 (GMT)
commitd363eb5b0255c055e7b43f5e2c0847f555e1982e (patch)
tree126be9692e95625c5fb5c32781ef9ca0d21da187 /Doc/whatsnew/2.5.rst
parent8d61a71f9c81619e34d4a30b625922ebc83c561b (diff)
downloadcpython-d363eb5b0255c055e7b43f5e2c0847f555e1982e.zip
cpython-d363eb5b0255c055e7b43f5e2c0847f555e1982e.tar.gz
cpython-d363eb5b0255c055e7b43f5e2c0847f555e1982e.tar.bz2
gh-107091: Fix some uses of :attr: role (GH-107318)
Fix also formatting of PyMethodDef members.
Diffstat (limited to 'Doc/whatsnew/2.5.rst')
-rw-r--r--Doc/whatsnew/2.5.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/whatsnew/2.5.rst b/Doc/whatsnew/2.5.rst
index ec4a7eb..2bb681b 100644
--- a/Doc/whatsnew/2.5.rst
+++ b/Doc/whatsnew/2.5.rst
@@ -954,7 +954,7 @@ The return value must be either a Python integer or long integer. The
interpreter will check that the type returned is correct, and raises a
:exc:`TypeError` if this requirement isn't met.
-A corresponding :attr:`nb_index` slot was added to the C-level
+A corresponding :c:member:`~PyNumberMethods.nb_index` slot was added to the C-level
:c:type:`PyNumberMethods` structure to let C extensions implement this protocol.
``PyNumber_Index(obj)`` can be used in extension code to call the
:meth:`__index__` function and retrieve its result.