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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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