format: reword deprecate notice and use doc links
This commit is contained in:
parent
f781442050
commit
e308fa68d9
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ package strings
|
||||||
|
|
||||||
import "slices"
|
import "slices"
|
||||||
|
|
||||||
// Deprecated: Use go slices package instead.
|
// Deprecated: Use standard library [slices.Contains] instead.
|
||||||
func Contains(list []string, needle string) bool {
|
func Contains(list []string, needle string) bool {
|
||||||
// TODO(v4): remove package.
|
// TODO(v4): remove package.
|
||||||
return slices.Contains(list, needle)
|
return slices.Contains(list, needle)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue