From e106b16148ba7231af3045be5e8384813373b509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Thu, 9 Mar 2023 13:01:43 +0100 Subject: [PATCH] Fix a typo in a variable Co-authored-by: Louis Dureuil aaa --- .../index_documents/extract/extract_fid_docid_facet_values.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milli/src/update/index_documents/extract/extract_fid_docid_facet_values.rs b/milli/src/update/index_documents/extract/extract_fid_docid_facet_values.rs index 0589dc773..be7b44eee 100644 --- a/milli/src/update/index_documents/extract/extract_fid_docid_facet_values.rs +++ b/milli/src/update/index_documents/extract/extract_fid_docid_facet_values.rs @@ -95,14 +95,14 @@ pub fn extract_fid_docid_facet_values( for (normalized, original) in strings.into_iter().filter(|(n, _)| !n.is_empty()) { - let normalised_truncated_value: String = normalized + let normalized_truncated_value: String = normalized .char_indices() .take_while(|(idx, _)| idx + 4 < MAX_FACET_VALUE_LENGTH) .map(|(_, c)| c) .collect(); key_buffer.truncate(size_of::() + size_of::()); - key_buffer.extend_from_slice(normalised_truncated_value.as_bytes()); + key_buffer.extend_from_slice(normalized_truncated_value.as_bytes()); fid_docid_facet_strings_sorter .insert(&key_buffer, original.as_bytes())?; }