Skip to content

Commit

Permalink
fix some bugs in c codes (#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanenr authored Feb 22, 2024
1 parent 799da32 commit 962f8f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codes/c/chapter_tree/binary_search_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "../utils/common.h"

/* 二叉搜索树你结构体 */
/* 二叉搜索树结构体 */
typedef struct {
TreeNode *root;
} BinarySearchTree;
Expand Down
2 changes: 1 addition & 1 deletion codes/c/utils/common_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void testTreeNode() {
printTree(root);

// tree to arr
int *arr = treeToArray(root, size);
int *arr = treeToArray(root, &size);
printArray(arr, size);
}

Expand Down

0 comments on commit 962f8f9

Please sign in to comment.