summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuki <drsuaimqjgar@gmail.com>2023-04-09 02:02:16 (GMT)
committerGitHub <noreply@github.com>2023-04-09 02:02:16 (GMT)
commit83af8f268629139b9628ff53617671469167146a (patch)
tree43133163adf4ac0e5e7ab1f501fe3a6e58d55d43
parent63dc969ec6129704c3b23b384ecfa8e485d6c4cb (diff)
downloadcpython-83af8f268629139b9628ff53617671469167146a.zip
cpython-83af8f268629139b9628ff53617671469167146a.tar.gz
cpython-83af8f268629139b9628ff53617671469167146a.tar.bz2
Docs: Fix broken reference `__getitem__` in `string.rst` (#103371)
-rw-r--r--Doc/library/string.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 5ada827..f55074c 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -235,7 +235,7 @@ dictionary keys (e.g., the strings ``'10'`` or ``':-]'``) within a format string
The *arg_name* can be followed by any number of index or
attribute expressions. An expression of the form ``'.name'`` selects the named
attribute using :func:`getattr`, while an expression of the form ``'[index]'``
-does an index lookup using :func:`__getitem__`.
+does an index lookup using :meth:`~object.__getitem__`.
.. versionchanged:: 3.1
The positional argument specifiers can be omitted for :meth:`str.format`,