Skip to content

Commit

Permalink
Fix AVLTreeDictionary<K, V> constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixill committed Dec 23, 2024
1 parent be64c05 commit 70277fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public AVLTreeDictionary(IEnumerable<KeyValuePair<K, V>> elems, IComparer<K> com
public AVLTreeDictionary(IEnumerable<KeyValuePair<K, V>> elems, Comparison<K> comparer)
{
this.KeyComparer = comparer;
BackingSet = new AVLTreeSet<KeyValuePair<K, V>>((left, right) => KeyComparer(left.Key, right.Key));
BackingSet = new AVLTreeSet<KeyValuePair<K, V>>(elems, (left, right) => KeyComparer(left.Key, right.Key));
}
#endregion

Expand Down

0 comments on commit 70277fa

Please sign in to comment.