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) } } }