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

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

View File

@ -419,7 +419,7 @@ impl<'t, A: AsRef<[u8]>> Matcher<'t, '_, A> {
} else { } else {
match &self.matches { match &self.matches {
Some((tokens, matches)) => { Some((tokens, matches)) => {
// If the text have to be croped, // If the text has to be cropped,
// compute the best interval to crop around. // compute the best interval to crop around.
let matches = match format_options.crop { let matches = match format_options.crop {
Some(crop_size) if crop_size > 0 => { Some(crop_size) if crop_size > 0 => {