Skip to content

Commit b624210

Browse files
Update src/disjoint_set.jl
1 parent d97afeb commit b624210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/disjoint_set.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ in_same_set(s::IntDisjointSets{T}, x::T, y::T) where {T<:Integer} = find_root!(s
8484
Merge the subset containing x and that containing y into one
8585
and return the root of the new set.
8686
"""
87-
function Base.union!(s::IntDisjointSets, x::Integer, y::Integer)
87+
function Base.union!(s::IntDisjointSets{T}, x::T, y::T) where {T<:Integer}
8888
parents = s.parents
8989
xroot = find_root_impl!(parents, x)
9090
yroot = find_root_impl!(parents, y)

0 commit comments

Comments
 (0)