From 867867b5d62818c6dc1474fb9dba487075038e45 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 15 Sep 2023 11:07:34 +0800 Subject: [PATCH] 1 --- listhead.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/listhead.go b/listhead.go index a94fe4e..4eeb062 100644 --- a/listhead.go +++ b/listhead.go @@ -115,7 +115,7 @@ func (this *ListHead) ForEach(cb ListHead_Foreach_Func) { } if cursor.next == oldN { oldN.Del() - cursor.prev.AddHead(oldN) + cursor.AddTail(oldN) } } }