From a277daa1f2a6cc8f7a12f9bc9c7dfcabc79a16a8 Mon Sep 17 00:00:00 2001 From: Many the fish Date: Mon, 18 Jul 2022 17:47:13 +0200 Subject: [PATCH] Update milli/src/search/matches/mod.rs --- milli/src/search/matches/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/src/search/matches/mod.rs b/milli/src/search/matches/mod.rs index 8df93daa1..649078f7c 100644 --- a/milli/src/search/matches/mod.rs +++ b/milli/src/search/matches/mod.rs @@ -252,7 +252,7 @@ impl<'t, A: AsRef<[u8]>> Matcher<'t, '_, A> { let mut remaining_words = crop_size + first_match_word_position - last_match_word_position; // create the initial state of the crop window: 2 iterators starting from the matches positions, - // a reverse iterator starting from the first match token position and going trew the beginning of the text, + // a reverse iterator starting from the first match token position and going towards the beginning of the text, let mut before_tokens = tokens[..first_match_token_position].iter().rev().peekable(); // an iterator starting from the last match token position and going trew the end of the text. let mut after_tokens = tokens[last_match_token_position..].iter().peekable();