From 6fd0cb60be526ccef89adc672e74edb6e52aad34 Mon Sep 17 00:00:00 2001 From: Alexandr Guzhva Date: Fri, 26 May 2023 11:48:19 -0700 Subject: [PATCH] fix a typo (#2881) Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2881 Reviewed By: algoriddle Differential Revision: D46227909 fbshipit-source-id: 9af689947f003b1f9c1dcdedcb1783b78b4bd21a --- faiss/impl/ScalarQuantizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faiss/impl/ScalarQuantizer.cpp b/faiss/impl/ScalarQuantizer.cpp index 8d18907875..4ffec5e6ca 100644 --- a/faiss/impl/ScalarQuantizer.cpp +++ b/faiss/impl/ScalarQuantizer.cpp @@ -486,7 +486,7 @@ void train_Uniform( } else if (rs == ScalarQuantizer::RS_quantiles) { std::vector x_copy(n); memcpy(x_copy.data(), x, n * sizeof(*x)); - // TODO just do a qucikselect + // TODO just do a quickselect std::sort(x_copy.begin(), x_copy.end()); int o = int(rs_arg * n); if (o < 0)