diff --git a/codes/c/chapter_tree/binary_search_tree.c b/codes/c/chapter_tree/binary_search_tree.c index b790d8010..751d63b9e 100644 --- a/codes/c/chapter_tree/binary_search_tree.c +++ b/codes/c/chapter_tree/binary_search_tree.c @@ -6,7 +6,7 @@ #include "../utils/common.h" -/* 二叉搜索树你结构体 */ +/* 二叉搜索树结构体 */ typedef struct { TreeNode *root; } BinarySearchTree; diff --git a/codes/c/utils/common_test.c b/codes/c/utils/common_test.c index 54a0410dc..1f70e42ff 100644 --- a/codes/c/utils/common_test.c +++ b/codes/c/utils/common_test.c @@ -25,7 +25,7 @@ void testTreeNode() { printTree(root); // tree to arr - int *arr = treeToArray(root, size); + int *arr = treeToArray(root, &size); printArray(arr, size); }