diff --git a/docs/function.md b/docs/function.md index d090daa..c6cdf62 100644 --- a/docs/function.md +++ b/docs/function.md @@ -101,8 +101,6 @@ import ( ) func main() { - assert := internal.NewAssert(t, "TestBefore") - arr := []string{"a", "b", "c", "d", "e"} f := function.Before(3, func(i int) int { return i @@ -120,7 +118,7 @@ func main() { } expected := []int64{0, 1, 2, 2, 2} - assert.Equal(expected, res) + fmt.Println(res) // 0, 1, 2, 2, 2 } ``` diff --git a/docs/function_zh-CN.md b/docs/function_zh-CN.md index b86f2fb..c8af436 100644 --- a/docs/function_zh-CN.md +++ b/docs/function_zh-CN.md @@ -101,8 +101,6 @@ import ( ) func main() { - assert := internal.NewAssert(t, "TestBefore") - arr := []string{"a", "b", "c", "d", "e"} f := function.Before(3, func(i int) int { return i @@ -119,8 +117,7 @@ func main() { appendStr(i, arr[i], f) } - expected := []int64{0, 1, 2, 2, 2} - assert.Equal(expected, res) + fmt.Println(res) // 0, 1, 2, 2, 2 } ``` @@ -297,7 +294,7 @@ func main() { time.Sleep(5 * time.Second) close(stop) - fmt.Println(res) //[* * * * *] + fmt.Println(res) //[* * * * *] } ```