Skip to content

Commit

Permalink
Fix sorted set leaderboard typo (#2656)
Browse files Browse the repository at this point in the history
  • Loading branch information
minhhieu76qng authored Feb 7, 2024
1 parent 6895f84 commit 578a29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/data-types/sorted-sets.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ the #4932 best score here").

## Examples

* There are two ways we can use a sorted set to represent a leaderbaord. If we know a racer's new score, we can update it directly via the `ZADD` command. However, if we want to add points to an existing score, we can use the `ZINCRBY` command.
* There are two ways we can use a sorted set to represent a leaderboard. If we know a racer's new score, we can update it directly via the `ZADD` command. However, if we want to add points to an existing score, we can use the `ZINCRBY` command.
{{< clients-example ss_tutorial leaderboard >}}
> ZADD racer_scores 100 "Wood"
(integer) 1
Expand Down

0 comments on commit 578a29d

Please sign in to comment.