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

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

parent 1ac07c22
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ func (queue *Queue) Offer(element interface{}) bool {
}
// Poll returns and removes the oldest element in the queue and true if successful.
// If returns false is the queue is empty.
// If returns false if the queue is empty.
func (queue *Queue) Poll() (element interface{}, success bool) {
queue.mutex.Lock()
defer queue.mutex.Unlock()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment