Unverified Commit d306d861 authored by Binbin's avatar Binbin Committed by GitHub
Browse files

Fix ZRANK/ZREVRANK reply_schema description (#12331)

The parameter name is WITHSCORE instead of WITHSCORES.
parent 13e17e94
...@@ -47,11 +47,11 @@ ...@@ -47,11 +47,11 @@
}, },
{ {
"type": "integer", "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", "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, "minItems": 2,
"maxItems": 2, "maxItems": 2,
"items": [ "items": [
......
...@@ -47,11 +47,11 @@ ...@@ -47,11 +47,11 @@
}, },
{ {
"type": "integer", "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", "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, "minItems": 2,
"maxItems": 2, "maxItems": 2,
"items": [ "items": [
......
...@@ -450,7 +450,7 @@ start_server {tags {"zset"}} { ...@@ -450,7 +450,7 @@ start_server {tags {"zset"}} {
assert_equal $nullres [r zrevrank zranktmp foo] assert_equal $nullres [r zrevrank zranktmp foo]
r readraw 0 r readraw 0
# withscores # withscore
set nullres {*-1} set nullres {*-1}
if {$::force_resp3} { if {$::force_resp3} {
set nullres {_} set nullres {_}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment