From 9a569d73d18427b65d009c7314f8234ba90bafc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Lecrenier?= Date: Mon, 24 Oct 2022 15:30:43 +0200 Subject: [PATCH] Minor code style change --- milli/src/update/prefix_word_pairs/prefix_word.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/src/update/prefix_word_pairs/prefix_word.rs b/milli/src/update/prefix_word_pairs/prefix_word.rs index 9bc184825..26fe0105e 100644 --- a/milli/src/update/prefix_word_pairs/prefix_word.rs +++ b/milli/src/update/prefix_word_pairs/prefix_word.rs @@ -83,7 +83,7 @@ pub fn index_prefix_word_database( let mut writer = create_writer(chunk_compression_type, chunk_compression_level, tempfile::tempfile()?); - for proximity in 1..=max_proximity - 1 { + for proximity in 1..max_proximity { for prefix in new_prefixes.iter() { let mut prefix_key = vec![]; prefix_key.push(proximity);