Fix ZRANK/ZREVRANK reply_schema description (#12331)

The parameter name is WITHSCORE instead of WITHSCORES.
This commit is contained in:
Binbin 2023-06-20 16:15:40 +08:00 committed by GitHub
parent 13e17e94d8
commit d306d86146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -47,11 +47,11 @@
},
{
"type": "integer",
"description": "The rank of the member when 'WITHSCORES' is not used."
"description": "The rank of the member when 'WITHSCORE' is not used."
},
{
"type": "array",
"description": "The rank and score of the member when 'WITHSCORES' is used.",
"description": "The rank and score of the member when 'WITHSCORE' is used.",
"minItems": 2,
"maxItems": 2,
"items": [

View File

@ -47,11 +47,11 @@
},
{
"type": "integer",
"description": "The rank of the member when 'WITHSCORES' is not used."
"description": "The rank of the member when 'WITHSCORE' is not used."
},
{
"type": "array",
"description": "The rank and score of the member when 'WITHSCORES' is used.",
"description": "The rank and score of the member when 'WITHSCORE' is used.",
"minItems": 2,
"maxItems": 2,
"items": [

View File

@ -450,7 +450,7 @@ start_server {tags {"zset"}} {
assert_equal $nullres [r zrevrank zranktmp foo]
r readraw 0
# withscores
# withscore
set nullres {*-1}
if {$::force_resp3} {
set nullres {_}