[Python-checkins] Docs: Fix broken reference `__getitem__` in `string.rst` (#103371)

kumaraditya303 webhook-mailer at python.org
Sat Apr 8 22:02:22 EDT 2023


https://github.com/python/cpython/commit/83af8f268629139b9628ff53617671469167146a
commit: 83af8f268629139b9628ff53617671469167146a
branch: main
author: yuki <drsuaimqjgar at gmail.com>
committer: kumaraditya303 <59607654+kumaraditya303 at users.noreply.github.com>
date: 2023-04-09T07:32:16+05:30
summary:

Docs: Fix broken reference `__getitem__` in `string.rst` (#103371)

files:
M Doc/library/string.rst

diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 5ada82732818..f55074cc5827 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`,



More information about the Python-checkins mailing list