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
+1 -1
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}
}
```
+1 -1
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}
}
```