mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-04 21:02:27 +08:00
fix: fix issue #302
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user