Skip to content

Commit

Permalink
Merge pull request redis#1241 from YangKian/master
Browse files Browse the repository at this point in the history
Fix sample code for Sort method in README
  • Loading branch information
vmihailenco authored Jan 19, 2020
2 parents a4bad76 + 944a6a1 commit c159538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Some corner cases:
set, err := client.SetNX("key", "value", 10*time.Second).Result()

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

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

0 comments on commit c159538

Please sign in to comment.