format: reword deprecate notice and use doc links

This commit is contained in:
Iñaki Segura 2024-11-15 13:40:34 +01:00
parent f781442050
commit e308fa68d9

View file

@ -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)