diff options
Diffstat (limited to 'src/cmd/api/api_test.go')
| -rw-r--r-- | src/cmd/api/api_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/api/api_test.go b/src/cmd/api/api_test.go index ba358d364d..7848233333 100644 --- a/src/cmd/api/api_test.go +++ b/src/cmd/api/api_test.go @@ -11,7 +11,7 @@ import ( "internal/testenv" "os" "path/filepath" - "sort" + "slices" "strings" "sync" "testing" @@ -77,7 +77,7 @@ func TestGolden(t *testing.T) { t.Fatalf("opening golden.txt for package %q: %v", fi.Name(), err) } wanted := strings.Split(string(bs), "\n") - sort.Strings(wanted) + slices.Sort(wanted) for _, feature := range wanted { if feature == "" { continue |
