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