finish example for gqueue

This commit is contained in:
mingzaily 2021-11-06 16:27:17 +08:00
parent e8f6ebc154
commit 38b797b42f

View File

@ -111,13 +111,8 @@ func ExampleQueue_Len() {
q.Push(1)
q.Push(2)
time.Sleep(time.Millisecond)
fmt.Println(q.Len())
q.Pop()
q.Close()
fmt.Println(q.Len())
// Output:
// 2
// 0
}