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

This commit is contained in:
Many the fish 2022-07-18 17:48:04 +02:00 committed by GitHub
parent 8ddb4e750b
commit 2d79720f5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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