mirror of
https://github.com/krahets/hello-algo.git
synced 2026-05-04 10:13:02 +08:00
Fix code naming style.
This commit is contained in:
@@ -16,7 +16,7 @@ func insertNode(n0 *ListNode, P *ListNode) {
|
||||
}
|
||||
|
||||
/* 删除链表的节点 n0 之后的首个节点 */
|
||||
func removeNode(n0 *ListNode) {
|
||||
func removeItem(n0 *ListNode) {
|
||||
if n0.Next == nil {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ func TestLinkedList(t *testing.T) {
|
||||
PrintLinkedList(n0)
|
||||
|
||||
/* 删除节点 */
|
||||
removeNode(n0)
|
||||
removeItem(n0)
|
||||
fmt.Println("删除节点后的链表为")
|
||||
PrintLinkedList(n0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user