Skip to content
Snippets Groups Projects
Unverified Commit 3e9272f5 authored by Acha Bill's avatar Acha Bill Committed by GitHub
Browse files

Update packages/binary/datastructure/queue/queue.go

parent cfe63d5d
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ func (queue *Queue) Capacity() int { ...@@ -38,7 +38,7 @@ func (queue *Queue) Capacity() int {
return queue.capacity return queue.capacity
} }
// Offer adds an element ot the queue and returns true. // Offer adds an element to the queue and returns true.
// If the queue is full, it drops it and returns false. // If the queue is full, it drops it and returns false.
func (queue *Queue) Offer(element interface{}) bool { func (queue *Queue) Offer(element interface{}) bool {
queue.mutex.Lock() queue.mutex.Lock()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment