diff --git a/recipes/Python/576816_Interval/recipe-576816.py b/recipes/Python/576816_Interval/recipe-576816.py index 11fe0ca22..a095dda80 100644 --- a/recipes/Python/576816_Interval/recipe-576816.py +++ b/recipes/Python/576816_Interval/recipe-576816.py @@ -50,7 +50,7 @@ def intersection(self, other): other, self = self, other if self.end <= other.start: return Interval(self.start, self.start) - return Interval(other.start, self.end) + return Interval(other.start, min(self.end, other.end)) def hull(self, other):