Skip to content

Commit 500c648

Browse files
DOC-4449 removed another instance of slices.Sort
1 parent a84596e commit 500c648

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doctests/cmds_hash_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package example_commands_test
55
import (
66
"context"
77
"fmt"
8-
"slices"
98
"sort"
109

1110
"github.com/redis/go-redis/v9"
@@ -231,7 +230,7 @@ func ExampleClient_hvals() {
231230
panic(err)
232231
}
233232

234-
slices.Sort(hValsResult2)
233+
sort.Slice(hValsResult2, func(i, j int) bool { return i < j })
235234

236235
fmt.Println(hValsResult2) // >>> [Hello World]
237236
// STEP_END

0 commit comments

Comments
 (0)