Skip to content

Commit

Permalink
fix circularbuffer example
Browse files Browse the repository at this point in the history
  • Loading branch information
ruokeqx authored and mouxianqiu committed Nov 21, 2023
1 parent 10d6c5b commit ab15bf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ func main() {
queue.Enqueue(2) // 1, 2
queue.Enqueue(3) // 1, 2, 3
_ = queue.Values() // 1, 2, 3
queue.Enqueue(3) // 4, 2, 3
queue.Enqueue(4) // 4, 2, 3
_, _ = queue.Peek() // 4,true
_, _ = queue.Dequeue() // 4, true
_, _ = queue.Dequeue() // 2, true
Expand Down
2 changes: 1 addition & 1 deletion examples/circularbuffer/circularbuffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func main() {
queue.Enqueue(2) // 1, 2
queue.Enqueue(3) // 1, 2, 3
_ = queue.Values() // 1, 2, 3
queue.Enqueue(3) // 4, 2, 3
queue.Enqueue(4) // 4, 2, 3
_, _ = queue.Peek() // 4,true
_, _ = queue.Dequeue() // 4, true
_, _ = queue.Dequeue() // 2, true
Expand Down

0 comments on commit ab15bf8

Please sign in to comment.