Skip to content

Commit 755a421

Browse files
authored
docs: fix zadd command parameter description (#3727)
I changed: the case, because they are all in lower-case as parameters of `zadd()`. And fixed the description to be in style with others.
1 parent 43ce2a4 commit 755a421

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redis/commands/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4172,17 +4172,17 @@ def zadd(
41724172
the existing score will be incremented by. When using this mode the
41734173
return value of ZADD will be the new score of the element.
41744174
4175-
``LT`` Only update existing elements if the new score is less than
4175+
``lt`` only updates existing elements if the new score is less than
41764176
the current score. This flag doesn't prevent adding new elements.
41774177
4178-
``GT`` Only update existing elements if the new score is greater than
4178+
``gt`` only updates existing elements if the new score is greater than
41794179
the current score. This flag doesn't prevent adding new elements.
41804180
41814181
The return value of ZADD varies based on the mode specified. With no
41824182
options, ZADD returns the number of new elements added to the sorted
41834183
set.
41844184
4185-
``NX``, ``LT``, and ``GT`` are mutually exclusive options.
4185+
``nx``, ``lt``, and ``gt`` are mutually exclusive options.
41864186
41874187
See: https://redis.io/commands/ZADD
41884188
"""

0 commit comments

Comments
 (0)