Skip to content

Commit

Permalink
python_bindings/bindings.cpp: fix typo.
Browse files Browse the repository at this point in the history
Signed-off-by: Étienne Mollier <[email protected]>
  • Loading branch information
emollier committed Aug 21, 2023
1 parent fd027d4 commit f27913b
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 f27913b

Please sign in to comment.