Skip to content

Commit

Permalink
Merge pull request nmslib#217 from Shujian2015/patch-1
Browse files Browse the repository at this point in the history
Fixed a typo in bindings.cpp
  • Loading branch information
yurymalkov authored Jun 19, 2020
2 parents 4388fbd + d6baa25 commit 920084b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python_bindings/bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ class Index {
(void *) items.data(row), k);
if (result.size() != k)
throw std::runtime_error(
"Cannot return the results in a contigious 2D array. Probably ef or M is to small");
"Cannot return the results in a contigious 2D array. Probably ef or M is too small");
for (int i = k - 1; i >= 0; i--) {
auto &result_tuple = result.top();
data_numpy_d[row * k + i] = result_tuple.first;
Expand All @@ -316,7 +316,7 @@ class Index {
(void *) (norm_array.data()+start_idx), k);
if (result.size() != k)
throw std::runtime_error(
"Cannot return the results in a contigious 2D array. Probably ef or M is to small");
"Cannot return the results in a contigious 2D array. Probably ef or M is too small");
for (int i = k - 1; i >= 0; i--) {
auto &result_tuple = result.top();
data_numpy_d[row * k + i] = result_tuple.first;
Expand Down

0 comments on commit 920084b

Please sign in to comment.