1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 21:02:27 +08:00

fix: fix incorrect comment for SinglyLink Clear function

This commit is contained in:
dudaodong
2022-05-31 21:42:31 +08:00
parent ff5db30208
commit ca47be41f6

View File

@@ -227,7 +227,7 @@ func (link *SinglyLink[T]) IsEmpty() bool {
return link.length == 0
}
// Clear checks if link is empty or not
// Clear all the node in singly linklist
func (link *SinglyLink[T]) Clear() {
link.Head = nil
link.length = 0