summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorRodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>2023-12-20 11:58:38 (GMT)
committerGitHub <noreply@github.com>2023-12-20 11:58:38 (GMT)
commit5a7cc667f816f0377f763322c2367301ea3379ee (patch)
tree9c9aaf8a0a451ec1f943e787d93a6ad246feb068 /Doc/reference
parent22b8945d7678be86f801ca54f004a5dba2006835 (diff)
downloadcpython-5a7cc667f816f0377f763322c2367301ea3379ee.zip
cpython-5a7cc667f816f0377f763322c2367301ea3379ee.tar.gz
cpython-5a7cc667f816f0377f763322c2367301ea3379ee.tar.bz2
Fix typo in datamodel docs (#113314)
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/datamodel.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 5e3757e..c774d75 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -2811,7 +2811,7 @@ through the object's keys; for sequences, it should iterate through the values.
the accepted keys should be integers and slice objects. Note that the
special interpretation of negative indexes (if the class wishes to emulate a
:term:`sequence` type) is up to the :meth:`__getitem__` method. If *key* is
- of an inappropriate type, :exc:`TypeError` may be raised; if of a value
+ of an inappropriate type, :exc:`TypeError` may be raised; if *key* is a value
outside the set of indexes for the sequence (after any special
interpretation of negative values), :exc:`IndexError` should be raised. For
:term:`mapping` types, if *key* is missing (not in the container),