Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ecb6be

Browse files
committed
#13695: fix a couple of typos in the doc.
1 parent a846d0a commit 9ecb6be

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/functools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The :mod:`functools` module defines the following functions:
2424
tools that accept key functions (such as :func:`sorted`, :func:`min`,
2525
:func:`max`, :func:`heapq.nlargest`, :func:`heapq.nsmallest`,
2626
:func:`itertools.groupby`). This function is primarily used as a transition
27-
tool for programs being converted from Py2.x which supported the use of
27+
tool for programs being converted from Python 2 which supported the use of
2828
comparison functions.
2929

3030
A compare function is any callable that accept two arguments, compares them,

Doc/library/unittest.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,13 +869,13 @@ Test cases
869869

870870
In addition, if *first* and *second* are the exact same type and one of
871871
list, tuple, dict, set, frozenset or str or any type that a subclass
872-
registers with :meth:`addTypeEqualityFunc` the type specific equality
872+
registers with :meth:`addTypeEqualityFunc` the type-specific equality
873873
function will be called in order to generate a more useful default
874874
error message (see also the :ref:`list of type-specific methods
875875
<type-specific-methods>`).
876876

877877
.. versionchanged:: 3.1
878-
Added the automatic calling of type specific equality function.
878+
Added the automatic calling of type-specific equality function.
879879

880880
.. versionchanged:: 3.2
881881
:meth:`assertMultiLineEqual` added as the default type equality

0 commit comments

Comments
 (0)