fix: pkg/strings comment typo
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
ec2a72d872
commit
5831b62383
|
|
@ -36,7 +36,7 @@ func Contains(slice []string, ele string) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove the duplicate elements in the string slice
|
// Remove the duplicate elements in the string slice.
|
||||||
func Unique(slice []string) []string {
|
func Unique(slice []string) []string {
|
||||||
keys := make(map[string]bool)
|
keys := make(map[string]bool)
|
||||||
result := []string{}
|
result := []string{}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue