docs: update function comments

This commit is contained in:
dudaodong committed 2022-05-28 10:51:15 +08:00
1 parent c949059fb1
commit 10a1706613
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ func NewLinkedQueue[T any]() *LinkedQueue[T] {
return &LinkedQueue[T]{head: nil, tail: nil, length: 0}
}
// Data return queue data
// Data return slice of queue data
func (q *LinkedQueue[T]) Data() []T {
res := []T{}
current := q.head