fix issue in UT cases for package gring

This commit is contained in:
John Guo 2022-02-16 15:31:01 +08:00
parent 6d09328d6d
commit fa39b9ee54

View File

@ -8,6 +8,7 @@ package gring_test
import (
"fmt"
"github.com/gogf/gf/v2/container/gring"
)
@ -209,10 +210,10 @@ func ExampleRing_Unlink() {
// Before Unlink, Cap: 10
// Before Unlink, [0 9 8 7 6 5 4 3 2 1]
// Before Unlink, [0 1 2 3 4 5 6 7 8 9]
// After Unlink, Len: 7
// After Unlink, Cap: 7
// After Unlink, [1 7 6 5 4 3 2]
// After Unlink, [1 2 3 4 5 6 7]
// After Unlink, Len: 3
// After Unlink, Cap: 3
// After Unlink, [0 9 8]
// After Unlink, [0 8 9]
}
func ExampleRing_RLockIteratorNext() {