Skip to content

Commit 944a6a1

Browse files
committed
Fix sample code for Sort method in README
1 parent a4bad76 commit 944a6a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Some corner cases:
9393
set, err := client.SetNX("key", "value", 10*time.Second).Result()
9494

9595
// SORT list LIMIT 0 2 ASC
96-
vals, err := client.Sort("list", redis.Sort{Offset: 0, Count: 2, Order: "ASC"}).Result()
96+
vals, err := client.Sort("list", &redis.Sort{Offset: 0, Count: 2, Order: "ASC"}).Result()
9797

9898
// ZRANGEBYSCORE zset -inf +inf WITHSCORES LIMIT 0 2
9999
vals, err := client.ZRangeByScoreWithScores("zset", redis.ZRangeBy{

0 commit comments

Comments
 (0)