Skip to content

Commit aa3be8a

Browse files
Update src/query/phrase_query/phrase_scorer.rs
Co-authored-by: Paul Masurel <[email protected]>
1 parent 5c0e545 commit aa3be8a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/query/phrase_query/phrase_scorer.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,10 @@ fn intersection_with_distance(left: &mut [u32], right: &[u32], slop: u32) -> usi
148148
let left_val = left[left_index];
149149
let right_val = right[right_index];
150150

151-
/*
152-
* The three conditions are:
153-
* left_val < right_slop -> left index increment.
154-
* right_slop <= left_val <= right -> find the best match.
155-
* left_val > right -> right index increment.
156-
*/
151+
// The three conditions are:
152+
// left_val < right_slop -> left index increment.
153+
// right_slop <= left_val <= right -> find the best match.
154+
// left_val > right -> right index increment.
157155
let right_slop = if right_val >= slop {
158156
right_val - slop
159157
} else {

0 commit comments

Comments
 (0)