fix: fix issue #302

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

No files matched your search

+1 -1
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