Skip to content

Commit 99a5638

Browse files
committed
Issue 14688: Fix typo
1 parent 3899283 commit 99a5638

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/howto/sorting.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ lists. In contrast, the :func:`sorted` function accepts any iterable.
4242
Key Functions
4343
=============
4444

45-
Both :meth:`list.sort` and :func:`sorted` have *key* parameter to specify a
45+
Both :meth:`list.sort` and :func:`sorted` have a *key* parameter to specify a
4646
function to be called on each list element prior to making comparisons.
4747

4848
For example, here's a case-insensitive string comparison:
@@ -89,7 +89,7 @@ Operator Module Functions
8989
The key-function patterns shown above are very common, so Python provides
9090
convenience functions to make accessor functions easier and faster. The
9191
:mod:`operator` module has :func:`~operator.itemgetter`,
92-
:func:`~operator.attrgetter`, and an :func:`~operator.methodcaller` function.
92+
:func:`~operator.attrgetter`, and a :func:`~operator.methodcaller` function.
9393

9494
Using those functions, the above examples become simpler and faster:
9595

@@ -114,7 +114,7 @@ Ascending and Descending
114114
========================
115115

116116
Both :meth:`list.sort` and :func:`sorted` accept a *reverse* parameter with a
117-
boolean value. This is using to flag descending sorts. For example, to get the
117+
boolean value. This is used to flag descending sorts. For example, to get the
118118
student data in reverse *age* order:
119119

120120
>>> sorted(student_tuples, key=itemgetter(2), reverse=True)

0 commit comments

Comments
 (0)