1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-08 14:42:27 +08:00

docs: format index content

This commit is contained in:
dudaodong
2022-11-26 17:37:09 +08:00
parent be148e07ba
commit 80cbbdc787
26 changed files with 8 additions and 33 deletions

View File

@@ -172,8 +172,8 @@ import (
func main() {
arr := []string{"a", "b", "c", "d", "e"}
res := slice.Chunk(InterfaceSlice(arr), 3)
fmt.Println(res) //[][]any{{"a", "b", "c"}, {"d", "e"}}
res := slice.Chunk((arr), 3)
fmt.Println(res) //[][]string{{"a", "b", "c"}, {"d", "e"}}
}
```