Skip to content

Commit 8992208

Browse files
committed
DOC: clarify np.searchsorted documentation and add example for sorter
1 parent a3a4769 commit 8992208

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

numpy/_core/fromnumeric.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,8 @@ def searchsorted(a, v, side='left', sorter=None):
15351535
>>> np.searchsorted([11,12,13,14,15], [-10, 20, 12, 13])
15361536
array([0, 5, 1, 2])
15371537
1538-
When `sorter` is used, the returned indices refer to the sorted array of 'a' and not a itself:
1538+
When `sorter` is used, the returned indices refer to the sorted
1539+
array of 'a' and not 'a' itself:
15391540
15401541
>>> a = np.array([40, 10, 20, 30])
15411542
>>> sorter = np.argsort(a)

0 commit comments

Comments
 (0)