Skip to content

Commit

Permalink
Fix for interval overlap check.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Mar 14, 2024
1 parent f70147c commit ba381cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl Interval {
point >= self.start && point < self.stop
}
pub fn overlaps(self, other: Interval) -> bool {
!(other.stop < self.start || other.start >= self.stop)
!(other.stop <= self.start || other.start >= self.stop)
}
pub fn intersection(self, other: Interval) -> Self {
Self {
Expand Down

0 comments on commit ba381cf

Please sign in to comment.