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

fix: fix issue #302

This commit is contained in:
dudaodong
2025-04-03 10:23:03 +08:00
parent ceb706b874
commit 1e0ee1fac1
3 changed files with 62 additions and 62 deletions

View File

@@ -55,7 +55,7 @@ func (q *ArrayQueue[T]) IsFull() bool {
// Front return front value of queue
func (q *ArrayQueue[T]) Front() T {
return q.data[0]
return q.data[q.head]
}
// Back return back value of queue