diff options
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r-- | numpy/add_newdocs.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index 6b48acbdc..86773335b 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -877,10 +877,10 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('searchsorted', a[j] < key <= a[i] for all j < i, - If such an index does not exist, a.size() is used. The result is such that - if the key were to be inserted into a in the slot before the index i, then - the order of a would be preserved and i would be the smallest index with - that property. + If such an index does not exist, a.size() is used. Consequently, i is the + index of the first item in a that is >= key. If the key were to be inserted + into a in the slot before the index i, then the order of a would be + preserved and i would be the smallest index with that property. The method call @@ -891,10 +891,10 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('searchsorted', a[j] <= key < a[i] for all j < i, - If such an index does not exist, a.size() is used. The result is such that - if the key were to be inserted into a in the slot before the index i, then - the order of a would be preserved and i would be the largest index with - that property. + If such an index does not exist, a.size() is used. Consequently, i is the + index of the first item in a that is > key. If the key were to be inserted + into a in the slot before the index i, then the order of a would be + preserved and i would be the largest index with that property. """)) |