mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 16:51:01 +00:00
Update milli/src/search/matches/mod.rs
This commit is contained in:
@ -257,7 +257,7 @@ impl<'t, A: AsRef<[u8]>> Matcher<'t, '_, A> {
|
|||||||
// an iterator starting from the last match token position and going trew the end of the text.
|
// 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();
|
let mut after_tokens = tokens[last_match_token_position..].iter().peekable();
|
||||||
|
|
||||||
// gross the crop window peeking in both drections
|
// grows the crop window peeking in both directions
|
||||||
// until the window contains the good number of words:
|
// until the window contains the good number of words:
|
||||||
while remaining_words > 0 {
|
while remaining_words > 0 {
|
||||||
let before_token = before_tokens.peek().map(|t| t.separator_kind());
|
let before_token = before_tokens.peek().map(|t| t.separator_kind());
|
||||||
|
Reference in New Issue
Block a user