summaryrefslogtreecommitdiffstats
path: root/Doc/library/collections.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-02-14 10:47:49 (GMT)
committerGitHub <noreply@github.com>2023-02-14 10:47:49 (GMT)
commitbc3718eb4b6defcdffb23b0c6f5879c5e721609a (patch)
treebb2ed8e9bac7da477e790882a0abbd9432f13157 /Doc/library/collections.rst
parent59852bbcc38ed4b5d6da7208e0e6b96456028523 (diff)
downloadcpython-bc3718eb4b6defcdffb23b0c6f5879c5e721609a.zip
cpython-bc3718eb4b6defcdffb23b0c6f5879c5e721609a.tar.gz
cpython-bc3718eb4b6defcdffb23b0c6f5879c5e721609a.tar.bz2
GH-101898: Fix missing term references for hashable definition (GH-101899)
Fix missing term references for hashable definition (cherry picked from commit 3690688149dca11589af59b7704541336613199a) Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r--Doc/library/collections.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 2086383..285d362 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -25,7 +25,7 @@ Python's general purpose built-in containers, :class:`dict`, :class:`list`,
:func:`namedtuple` factory function for creating tuple subclasses with named fields
:class:`deque` list-like container with fast appends and pops on either end
:class:`ChainMap` dict-like class for creating a single view of multiple mappings
-:class:`Counter` dict subclass for counting hashable objects
+:class:`Counter` dict subclass for counting :term:`hashable` objects
:class:`OrderedDict` dict subclass that remembers the order entries were added
:class:`defaultdict` dict subclass that calls a factory function to supply missing values
:class:`UserDict` wrapper around dictionary objects for easier dict subclassing
@@ -241,7 +241,7 @@ For example::
.. class:: Counter([iterable-or-mapping])
- A :class:`Counter` is a :class:`dict` subclass for counting hashable objects.
+ A :class:`Counter` is a :class:`dict` subclass for counting :term:`hashable` objects.
It is a collection where elements are stored as dictionary keys
and their counts are stored as dictionary values. Counts are allowed to be
any integer value including zero or negative counts. The :class:`Counter`