Skip to content

Commit

Permalink
Update unionalgorithms.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
putianyi889 committed Feb 22, 2024
1 parent f33a621 commit 7e5668b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unionalgorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function iterunion(iter)
end
return Interval{L,R,T}(l,r)
end
return one(T)..zero(T) # can't find the first non-empty interval. return an empty interval.
return first(iter) # can't find the first non-empty interval. return the first one.
end

# good old union
Expand Down

0 comments on commit 7e5668b

Please sign in to comment.