Skip to content

Commit c58aa9e

Browse files
committed
[fix] comment descriptions
1 parent 4acda92 commit c58aa9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/binary_tree.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static inline BST_TYPED(node_t) *BST_FUNC(candidate_leaf)(BST_TYPED(node_t) *nod
9999

100100
void BST_FUNC(rotate_left)(BST_NODE_TYPE *node) {
101101
/*
102-
Left rotation (rotate a to the left)
102+
Left rotation (rotate b to the left)
103103
104104
b c
105105
/ \ / \
@@ -123,7 +123,7 @@ void BST_FUNC(rotate_left)(BST_NODE_TYPE *node) {
123123

124124
void BST_FUNC(rotate_right)(BST_NODE_TYPE *node) {
125125
/*
126-
Left rotation (rotate a to the left)
126+
Right rotation (rotate c to the right)
127127
128128
c b
129129
/ \ / \

0 commit comments

Comments
 (0)