Skip to content

Commit 090ecc0

Browse files
committed
Minor documentation update
1 parent 64f9b09 commit 090ecc0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ alias of TypeVar(‘T’)
5252

5353
### merge_insertion.Comparator
5454

55-
A user-supplied function to compare two items.
55+
A user-supplied async function to compare two items.
5656
The argument is a tuple of the two items to be compared; they must not be equal.
57-
Must return a Promise resolving to 0 if the first item is ranked higher, or 1 if the second item is ranked higher.
57+
Must return 0 if the first item is ranked higher, or 1 if the second item is ranked higher.
5858

5959
<a id="merge_insertion.merge_insertion_sort"></a>
6060

merge_insertion/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ def _make_groups(array :Sequence[T]) -> Sequence[tuple[int, T]]:
101101
i += size
102102
return rv
103103

104-
#: A user-supplied function to compare two items.
104+
#: A user-supplied async function to compare two items.
105105
#: The argument is a tuple of the two items to be compared; they must not be equal.
106-
#: Must return a Promise resolving to 0 if the first item is ranked higher, or 1 if the second item is ranked higher.
106+
#: Must return 0 if the first item is ranked higher, or 1 if the second item is ranked higher.
107107
Comparator = Callable[[tuple[T, T]], Awaitable[Literal[0, 1]]]
108108

109109
async def _bin_insert_index(array :Sequence[T], item :T, comp :Comparator) -> int:

0 commit comments

Comments
 (0)