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

Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
Many the fish 2022-07-18 10:18:03 +02:00 committed by GitHub
parent 5d79617a56
commit 1da4ab5918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,7 +325,7 @@ impl<'t, A: AsRef<[u8]>> Matcher<'t, '_, A> {
}
}
// finally, keep the byte index of each bounds of the crop window.
// finally, keep the byte index of each bound of the crop window.
let crop_byte_start = before_tokens.next().map_or(0, |t| t.byte_end);
let crop_byte_end = after_tokens.next().map_or(self.text.len(), |t| t.byte_start);