mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-12 00:32:27 +08:00
fix: fix incorrect comment for SinglyLink Clear function
This commit is contained in:
@@ -227,7 +227,7 @@ func (link *SinglyLink[T]) IsEmpty() bool {
|
|||||||
return link.length == 0
|
return link.length == 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clear checks if link is empty or not
|
// Clear all the node in singly linklist
|
||||||
func (link *SinglyLink[T]) Clear() {
|
func (link *SinglyLink[T]) Clear() {
|
||||||
link.Head = nil
|
link.Head = nil
|
||||||
link.length = 0
|
link.length = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user