1
0
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:
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 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