Update milli/src/search/matches/mod.rs

This commit is contained in:
Many the fish 2022-07-18 17:45:06 +02:00 committed by GitHub
parent e261ef64d7
commit d7fd5c58cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
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:
while remaining_words > 0 {
let before_token = before_tokens.peek().map(|t| t.separator_kind());