diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2016-12-20 15:39:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-20 15:39:56 +0100 |
commit | 0b7691201e255ed21a0fdf6779199de0d7c1498c (patch) | |
tree | a685b88b63e1c7b7702fd250d565c956be3203aa | |
parent | 43bccbc3f46a92f71cd4029b8b3fbe54004b6e29 (diff) | |
parent | 0f36e5e5d8031496a07cde241d2c932d1e73ea38 (diff) | |
download | redis-0b7691201e255ed21a0fdf6779199de0d7c1498c.tar.gz |
Merge pull request #3242 from whatacold/unstable
fix the wrong description of intsetGet().
-rw-r--r-- | src/intset.c | 2 |
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)) { |