Skip to content

Commit 5a5d3a0

Browse files
committed
refactor: remove comment as it already in description
1 parent 0580fff commit 5a5d3a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/datastructures/disjointsetunion/DisjointSetUnion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public Node<T> makeSet(final T value) {
3232
*/
3333
public Node<T> findSet(Node<T> node) {
3434
if (node != node.parent) {
35-
node.parent = findSet(node.parent); // Path compression
35+
node.parent = findSet(node.parent);
3636
}
3737
return node.parent;
3838
}

0 commit comments

Comments
 (0)