Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 3316301

Browse files
committed
Updated documentation
1 parent 284d557 commit 3316301

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bisearch/prefix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def bisect_right(origin: List[str], search: str = "") -> int:
1313
:param search: a prefix to search
1414
:type search: str
1515
16-
:return: the index of the first string starting with search prefix
16+
:return: the index after the last string starting with search prefix
1717
:rtype: int
1818
1919
:raise: NotFound
@@ -47,7 +47,7 @@ def bisect_left(origin: List[str], search: str = "") -> int:
4747
:param search: a prefix to search
4848
:type search: str
4949
50-
:return: the index after the last string starting with search prefix
50+
:return: the index of the first string starting with search prefix
5151
:rtype: int
5252
5353
:raise: NotFound

0 commit comments

Comments
 (0)