Fix typo in comment (#540)

Address issue #528
This commit is contained in:
Xiaoming Fu
2020-12-08 23:13:05 -08:00
committed by GitHub
parent ebd6ffd2c0
commit 8a12653ac3

View File

@ -155,7 +155,7 @@ export default class RedBlackTree extends BinarySearchTree {
parentNode.parent = null; parentNode.parent = null;
} }
// Swap colors of granParent and parent nodes. // Swap colors of grandParentNode and parentNode.
this.swapNodeColors(parentNode, grandParentNode); this.swapNodeColors(parentNode, grandParentNode);
// Return new root node. // Return new root node.