1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

fix: fix missused function ToSlice -> ToSlicePointer

This commit is contained in:
dudaodong
2022-07-06 11:31:11 +08:00
parent 1faaf54986
commit 3625921912
2 changed files with 2 additions and 2 deletions

View File

@@ -1106,7 +1106,7 @@ import (
func main() {
str1 := "a"
str2 := "b"
res := slice.ToSlice(str1, str2)
res := slice.ToSlicePointer(str1, str2)
fmt.Println(res) // res -> []*string{&str1, &str2}
}
```

View File

@@ -1107,7 +1107,7 @@ import (
func main() {
str1 := "a"
str2 := "b"
res := slice.ToSlice(str1, str2)
res := slice.ToSlicePointer(str1, str2)
fmt.Println(res) // res -> []*string{&str1, &str2}
}
```