mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
fix: fix incorrect comment for DoublyLink Clear function
This commit is contained in:
1 parent
a6fe155781
commit
f0e6e94c5e
1 file changed
+1
-1
@@ -234,7 +234,7 @@ func (link *DoublyLink[T]) IsEmpty() bool {
|
|||||||
return link.length == 0
|
return link.length == 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clear checks if link is empty or not
|
// Clear all nodes in doubly linklist
|
||||||
func (link *DoublyLink[T]) Clear() {
|
func (link *DoublyLink[T]) Clear() {
|
||||||
link.Head = nil
|
link.Head = nil
|
||||||
link.length = 0
|
link.length = 0
|
||||||
|
|||||||
Reference in new issue
Block a user