Skip to content

Commit

Permalink
Merge pull request #500 from emollier/typo
Browse files Browse the repository at this point in the history
python_bindings/bindings.cpp: fix typo.
  • Loading branch information
yurymalkov authored Aug 23, 2023
2 parents fd027d4 + f27913b commit ca85f0d
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 @@ -645,7 +645,7 @@ class Index {
(void*)items.data(row), k, p_idFilter);
if (result.size() != k)
throw std::runtime_error(
"Cannot return the results in a contigious 2D array. Probably ef or M is too small");
"Cannot return the results in a contiguous 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 @@ -665,7 +665,7 @@ class Index {
(void*)(norm_array.data() + start_idx), k, p_idFilter);
if (result.size() != k)
throw std::runtime_error(
"Cannot return the results in a contigious 2D array. Probably ef or M is too small");
"Cannot return the results in a contiguous 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 ca85f0d

Please sign in to comment.