Skip to content

Commit 7a7f90c

Browse files
committed
Use de morgan
1 parent 7cdca72 commit 7a7f90c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/line-index/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ impl LineIndex {
161161
.get(&ret.line)
162162
.into_iter()
163163
.flat_map(|it| it.iter())
164-
.all(|it| !(it.start < col && col < it.end))
164+
.all(|it| col <= it.start || it.end <= col)
165165
.then_some(ret)
166166
}
167167

0 commit comments

Comments
 (0)