Skip to content

Commit 7f93e11

Browse files
author
garretliu
committed
fix zank withscores
1 parent a402c55 commit 7f93e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sortedset_commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ func (c cmdable) ZRank(ctx context.Context, key, member string) *IntCmd {
514514
// ZRankWithScore according to the Redis documentation, if member does not exist
515515
// in the sorted set or key does not exist, it will return a redis.Nil error.
516516
func (c cmdable) ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd {
517-
cmd := NewRankWithScoreCmd(ctx, "zrank", key, member, "withscore")
517+
cmd := NewRankWithScoreCmd(ctx, "zrank", key, member, "withscores")
518518
_ = c(ctx, cmd)
519519
return cmd
520520
}

0 commit comments

Comments
 (0)