summaryrefslogtreecommitdiff
path: root/libiberty/splay-tree.c
diff options
context:
space:
mode:
authorzlomek <zlomek@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-07 18:19:36 +0000
committerzlomek <zlomek@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-07 18:19:36 +0000
commitd6dfdca2e2be0c3d980136d6604e78a11e7bdeec (patch)
treeec9eb463afe70f4141126c2ab559c6c118e54433 /libiberty/splay-tree.c
parentb3552be19c1312109b6ea06579cdf4ef3fc9c4dd (diff)
downloadgcc-d6dfdca2e2be0c3d980136d6604e78a11e7bdeec.tar.gz
* splay-tree.c (splay_tree_predecessor): Fix comment.
(splay_tree_successor): Fix comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66569 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/splay-tree.c')
-rw-r--r--libiberty/splay-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/splay-tree.c b/libiberty/splay-tree.c
index 6f90fde05fb..fc98db167f3 100644
--- a/libiberty/splay-tree.c
+++ b/libiberty/splay-tree.c
@@ -472,7 +472,7 @@ splay_tree_predecessor (sp, key)
if (comparison < 0)
return sp->root;
- /* Otherwise, find the leftmost element of the right subtree. */
+ /* Otherwise, find the rightmost element of the left subtree. */
node = sp->root->left;
if (node)
while (node->right)
@@ -505,7 +505,7 @@ splay_tree_successor (sp, key)
if (comparison > 0)
return sp->root;
- /* Otherwise, find the rightmost element of the left subtree. */
+ /* Otherwise, find the leftmost element of the right subtree. */
node = sp->root->right;
if (node)
while (node->left)