From 02ad2eaa5a1fbc368bc600cec54760e5c328a3f7 Mon Sep 17 00:00:00 2001 From: ahyalfan Date: Sun, 19 Oct 2025 22:06:59 +0700 Subject: [PATCH] fix: typo doubly doc fix typo doubly doc from DetAtEnd.... to DelAtEnd... --- structure/linkedlist/doubly.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/structure/linkedlist/doubly.go b/structure/linkedlist/doubly.go index 6864dacf0..ba2c13d26 100644 --- a/structure/linkedlist/doubly.go +++ b/structure/linkedlist/doubly.go @@ -87,7 +87,7 @@ func (ll *Doubly[T]) DelAtBeg() (T, bool) { return val, true } -// DetAtEnd Delete a node at the end of the linkedlist +// DelAtEnd Delete a node at the end of the linkedlist func (ll *Doubly[T]) DelAtEnd() (T, bool) { // no item if ll.Head.Prev == nil { @@ -104,7 +104,6 @@ func (ll *Doubly[T]) DelAtEnd() (T, bool) { // DelByPos deletes node at middle based on position in list // and returns value. If empty or position of node is less than linked list length, returns false func (ll *Doubly[T]) DelByPos(pos int) (T, bool) { - switch { case ll.Head == nil: var r T