Skip to content

Commit f7ee055

Browse files
committed
Fix missing references in reST documents
The Python documentation and NEWS entry for the override had missing references; this fixes them.
1 parent beeaaca commit f7ee055

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Doc/library/collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,7 @@ attribute.
13511351
.. method:: popitem
13521352

13531353
Remove and return a ``(key, value)`` pair from the wrapped dictionary. Pairs are
1354-
returned in in the same order as :func:`.data.popitem`. (For the default
1354+
returned in in the same order as ``data.popitem()``. (For the default
13551355
:meth:`dict.popitem`, this order is :abbr:`LIFO (last-in, first-out)`.) If the
13561356
dictionary is empty, raises a :exc:`KeyError`.
13571357

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
Guarantees that the CPython implementation of :meth:`collections.UserDict.popitem` will pop in the same order as the wrapped dictionary rather than an arbitrary order.
2-
This change will make :class:`UserDict` instances behave more similarly to :class:`dict` (or whichever mapping type the instance is customized to use).
1+
Guarantees that :meth:`collections.UserDict.popitem` will pop in the same order as the wrapped dictionary rather than an arbitrary order.

0 commit comments

Comments
 (0)