1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 15:12:26 +08:00

docs: update function comments

This commit is contained in:
dudaodong
2022-05-28 10:51:15 +08:00
parent c949059fb1
commit 10a1706613
4 changed files with 4 additions and 4 deletions

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