diff --git a/python_bindings/bindings.cpp b/python_bindings/bindings.cpp index ef1dc1d6..1b88ca23 100644 --- a/python_bindings/bindings.cpp +++ b/python_bindings/bindings.cpp @@ -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; @@ -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;