Fix code naming style.

This commit is contained in:
krahets
2023-10-15 21:18:09 +08:00
parent ada37fd1f8
commit 346c8451de
23 changed files with 51 additions and 51 deletions

View File

@@ -16,7 +16,7 @@ func insertNode(n0 *ListNode, P *ListNode) {
}
/* 删除链表的节点 n0 之后的首个节点 */
func removeNode(n0 *ListNode) {
func removeItem(n0 *ListNode) {
if n0.Next == nil {
return
}

View File

@@ -34,7 +34,7 @@ func TestLinkedList(t *testing.T) {
PrintLinkedList(n0)
/* 删除节点 */
removeNode(n0)
removeItem(n0)
fmt.Println("删除节点后的链表为")
PrintLinkedList(n0)