Update linked_list.md (#935)

There is no need to declare next
pull/936/head
jiaxianhua 1 year ago committed by GitHub
parent c81d5e091b
commit 1f71f6f701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -152,7 +152,7 @@
/* 构造函数 */
ListNode *newListNode(int val) {
ListNode *node, *next;
ListNode *node;
node = (ListNode *) malloc(sizeof(ListNode));
node->val = val;
node->next = NULL;
@ -618,7 +618,7 @@
/* 构造函数 */
ListNode *newListNode(int val) {
ListNode *node, *next;
ListNode *node;
node = (ListNode *) malloc(sizeof(ListNode));
node->val = val;
node->next = NULL;

Loading…
Cancel
Save