From 01d8e5912be0df950afbc6e3aedae991570651a9 Mon Sep 17 00:00:00 2001 From: xindoo Date: Sun, 22 Nov 2020 20:56:45 +0800 Subject: [PATCH] fix comment error about zslDeleteRangeByScore range (#8075) Co-authored-by: Oran Agra --- src/t_zset.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/t_zset.c b/src/t_zset.c index f228e76dd..1f5f00a62 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -377,7 +377,8 @@ zskiplistNode *zslLastInRange(zskiplist *zsl, zrangespec *range) { } /* Delete all the elements with score between min and max from the skiplist. - * Min and max are inclusive, so a score >= min || score <= max is deleted. + * Both min and max can be inclusive or exclusive (see range->minex and + * range->maxex). When inclusive a score >= min && score <= max is deleted. * Note that this function takes the reference to the hash table view of the * sorted set, in order to remove the elements from the hash table too. */ unsigned long zslDeleteRangeByScore(zskiplist *zsl, zrangespec *range, dict *dict) {