From 521db035ca251667011c424326acd0f9929e4f33 Mon Sep 17 00:00:00 2001 From: wtz Date: Tue, 21 Feb 2023 06:19:47 +0800 Subject: [PATCH] docs: fix minor typos in `data_structures/avl_tree.c` (#1218) --- data_structures/binary_trees/avl_tree.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data_structures/binary_trees/avl_tree.c b/data_structures/binary_trees/avl_tree.c index 67d24ae0..60463873 100644 --- a/data_structures/binary_trees/avl_tree.c +++ b/data_structures/binary_trees/avl_tree.c @@ -169,12 +169,12 @@ avlNode *delete (avlNode *node, int queryNum) delete (node->right, queryNum); /*Recursive deletion in R subtree*/ else { - /*Single or No Child*/ + /*Single or No Children*/ if ((node->left == NULL) || (node->right == NULL)) { avlNode *temp = node->left ? node->left : node->right; - /* No Child*/ + /* No Children*/ if (temp == NULL) { temp = node; @@ -187,7 +187,7 @@ avlNode *delete (avlNode *node, int queryNum) } else { - /*Two Child*/ + /*Two Children*/ /*Get the smallest key in the R subtree*/ avlNode *temp = minNode(node->right);