summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2016-12-20 15:39:56 +0100
committerGitHub <noreply@github.com>2016-12-20 15:39:56 +0100
commit0b7691201e255ed21a0fdf6779199de0d7c1498c (patch)
treea685b88b63e1c7b7702fd250d565c956be3203aa
parent43bccbc3f46a92f71cd4029b8b3fbe54004b6e29 (diff)
parent0f36e5e5d8031496a07cde241d2c932d1e73ea38 (diff)
downloadredis-0b7691201e255ed21a0fdf6779199de0d7c1498c.tar.gz
Merge pull request #3242 from whatacold/unstable
fix the wrong description of intsetGet().
-rw-r--r--src/intset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intset.c b/src/intset.c
index 30ea85344..198c90aa1 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)) {