summaryrefslogtreecommitdiff
path: root/src/intset.c
diff options
context:
space:
mode:
authorwhatacold <whatacold@gmail.com>2016-05-18 16:39:52 +0800
committerwhatacold <whatacold@gmail.com>2016-05-18 16:39:52 +0800
commit0f36e5e5d8031496a07cde241d2c932d1e73ea38 (patch)
tree7065423e61444ad464d98a9cd03b7ecabba99254 /src/intset.c
parentb1b1f4e8e8078c06c7fc21a48032cc7e8d50f279 (diff)
downloadredis-0f36e5e5d8031496a07cde241d2c932d1e73ea38.tar.gz
fix the wrong description of intsetGet().
Diffstat (limited to 'src/intset.c')
-rw-r--r--src/intset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intset.c b/src/intset.c
index b0a597fc7..ac003519b 100644
--- a/src/intset.c
+++ b/src/intset.c
@@ -261,7 +261,7 @@ int64_t intsetRandom(intset *is) {
return _intsetGet(is,rand()%intrev32ifbe(is->length));
}
-/* Sets the value to the value at the given position. When this position is
+/* Get the value at the given position. When this position is
* out of range the function returns 0, when in range it returns 1. */
uint8_t intsetGet(intset *is, uint32_t pos, int64_t *value) {
if (pos < intrev32ifbe(is->length)) {