Skip to content

Commit 8a12653

Browse files
authoredDec 9, 2020
Fix typo in comment (trekhleb#540)
Address issue trekhleb#528
1 parent ebd6ffd commit 8a12653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/data-structures/tree/red-black-tree/RedBlackTree.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export default class RedBlackTree extends BinarySearchTree {
155155
parentNode.parent = null;
156156
}
157157

158-
// Swap colors of granParent and parent nodes.
158+
// Swap colors of grandParentNode and parentNode.
159159
this.swapNodeColors(parentNode, grandParentNode);
160160

161161
// Return new root node.

0 commit comments

Comments
 (0)
Please sign in to comment.